Name resolution in local domain slow.
I am trying to understand the behaviour of name resolution for the .local domain and why it sometimes slow.
If I use the getent utility (getent hosts myth.local) to resolve a name in the local domain with the standard settings in nsswitch.conf i.e.
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
I get a significant delay in resolution. A network trace shows the following:-
o. Time Source Destination Protocol Length Info
1 0.000000 192.168.10.2 192.168.10.1 DNS 70 Standard query AAAA myth.local
2 0.046538 212.104.130.9 192.168.10.2 DNS 145 Standard query response, No such name
3 1.303024 00:50:7f:62:ad:20 ff:ff:ff:ff:ff:ff ARP 60 Who has 192.168.10.253? Tell 192.168.10.1
4 5.005085 192.168.10.2 192.168.10.1 DNS 70 Standard query AAAA myth.local
5 5.050288 212.104.130.65 192.168.10.2 DNS 145 Standard query response, No such name
6 10.005865 192.168.10.2 192.168.10.1 DNS 70 Standard query AAAA myth.local
7 10.006893 90:e6:ba:2e:2f:46 00:50:7f:62:ad:20 ARP 42 Who has 192.168.10.1? Tell 192.168.10.2
8 10.007025 00:50:7f:62:ad:20 90:e6:ba:2e:2f:46 ARP 60 192.168.10.1 is at 00:50:7f:62:ad:20
9 10.051570 212.104.130.9 192.168.10.2 DNS 145 Standard query response, No such name
10 15.010985 192.168.10.2 192.168.10.1 DNS 70 Standard query AAAA myth.local
11 15.056055 212.104.130.65 192.168.10.2 DNS 145 Standard query response, No such name
12 20.116871 fe80::92e6:
13 20.117314 192.168.10.2 224.0.0.251 MDNS 70 Standard query A myth.local, "QM" question
14 20.117486 192.168.10.3 224.0.0.251 MDNS 80 Standard query response A, cache flush 192.168.10.3
Why is dns is being queryed before mdns? Surely thats not the behaviour specfied in nsswitch.conf. Anyone got any ideas.
If I change the nsswitch.conf line to be:-
hosts: files mdns4_minimal
Then the behaviour is as expected and the query returns quickly with the network trace just showing the mdns lookup and no dns lookups.
This has got very me very confused. My apologies if this is not quite the right forum for this question.
Roger
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu nss-mdns Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Roger James
- Solved:
- Last query:
- Last reply: