Multicast hostname lookups on OSX
Posted
by
KARASZI István
on Server Fault
See other posts from Server Fault
or by KARASZI István
Published on 2011-07-01T15:23:17Z
Indexed on
2011/07/01
16:23 UTC
Read the original article
Hit count: 347
I have a problem with hostname lookups on my OSX computer. According to Apple's HK3473 document it says for v10.6:
Host names that contain only one label in addition to local, for example "My-Computer.local", are resolved using Multicast DNS (Bonjour) by default. Host names that contain two or more labels in addition to local, for example "server.domain.local", are resolved using a DNS server by default.
Which is not true as my testing. If I try to open a connection on my local computer to a remote port:
telnet example.domain.local 22
then it will lookup the IP address with multicast DNS next to the A
and AAAA
lookups. This causes a two seconds lookup timeout on every lookup. Which is a lot!
When I try with IPv4 only then it won't use the multicast queries to fetch the remote address just the simple A
queries.
telnet -4 example.domain.local 22
When I try with IPv6 only:
telnet -6 example.domain.local 22
then it will lookup with multicast DNS and AAAA
again, and the 2 seconds timeout delay occurs again.
I've tried to create a resolver entry to my /etc/resolver/domain.local
, and /etc/resolver/local.1
, but none of them was working.
Is there any way to disable this multicast lookups for the "two or more label addition to local" domains, or simply disable it for the selected subdomain (domain.local)?
Thank you!
© Server Fault or respective owner