OT: What Might Break getbostbyname() ?

Tim Daneliuk tundra at tundraware.com
Thu Jan 17 15:21:09 UTC 2013


On Thu, January 17, 2013 6:49 am, Dan Nelson wrote:
> First, check /etc/nsswitch.conf and verify that "dns" is listed on the
> "hosts:" line.  Next, try disabling nscd ("svcadm disable
> name-service-cache") , and then running "truss ping www.google.com" (make
> sure to reenable nscd when you're done debugging).  You should see
> syscalls
> to open /etc/resolv.conf, read the contents, and then open a socket to
> the
> nameserver listed in that file.
>


Dan and Robert -

Thanks for your replies.   It seems that someone removed DNS
from the hosts line in nsswitch.conf and this is what was
breaking ordinarily userland resolver calls.  WHY they did this
is unclear to me.

I appreciate you folks taking the time here...



More information about the freebsd-questions mailing list