> From [email protected]  Wed Jan 16 22:08:13 2013
> Date: Wed, 16 Jan 2013 22:04:15 -0600
> From: Tim Daneliuk <[email protected]>
> To: FreeBSD Mailing List <[email protected]>
> Subject: OT: What Might Break getbostbyname() ?
>
> This is not really a FreeBSD problem ... in fact, it's happening on
> a Solaris 10 machine. But because the TCP stack and its userland
> interface came from BSD, I am hoping some kind soul might have
> an insight into what's going on ...
>
> The machine in question does DNS lookups fine via dig or nslookup.
> I believe these connect directly to the DNS server(s) specified
> in /etc/resolv.conf.
>
> However, any program that uses gethostbyname() - like ping - fails
> and says it cannot resolve the name.
>
> I'm looking for hints here on why or how gethostbyname() and/or
> the network stack could get clobbered so as to not be able to talk
> to the DNS servers which I know are reachable via dig and nslookup.

dig and nslookup use THEIR OWN resolver routines, =not= the 'standard
library' routines.  Something that fouls the library routines will not
affect dig and nslookup.

Given this is Solaris, check /etc/nis.switch (may not be the exactly
correct name, but close -- I haven't used Solaris in a decade). check
both the file content, and permissions.

You may have to run truss on ping to see what it's getting wrong.


_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[email protected]"

Reply via email to