Dan McDonald wrote: > On Fri, Jun 25, 2010 at 04:29:48PM +0200, Andrej Podzimek wrote: > <SNIP!> > >> Well 'dig' returns correct answers. So the bad responses do not come from >> the name server. The bad responses are only produced by >> gethostbyname()/getaddrinfo(), probably due to incorrect configuration. >> (All works fine on Linux and FreeBSD on the same machine.) > > What does the entry for "ipnodes" say in /etc/nsswitch.conf? It should match > "hosts": > > everywhere(~)[0]% egrep 'ipnodes|hosts' /etc/nsswitch.conf > # DNS for hosts lookups, otherwise it does not use any other naming service. > # "hosts:" and "services:" in this file are used only if the > hosts: files dns mdns > # Note that IPv4 addresses are searched for in all of the ipnodes databases > # before searching the hosts databases. > ipnodes: files dns mdns > everywhere(~)[0]%
Neat question ... I wonder if this could possibly be related to mdns. Doing "dig" wouldn't go through that path, but doing getaddrinfo() woudl based on the above configuration. -- James Carlson 42.703N 71.076W <[email protected]> _______________________________________________ networking-discuss mailing list [email protected]
