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]%
$ egrep 'hosts|ipnodes' /etc/nsswitch.conf # "hosts:" and "services:" in this file are used only if the hosts: files dns ipnodes: files dns Andrej
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ networking-discuss mailing list networking-discuss@opensolaris.org