Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 17 Jan 2013 15:20:27 -0000
From:      "Tim Daneliuk" <tundra@tundraware.com>
To:        "FreeBSD Mailing List" <freebsd-questions@freebsd.org>
Subject:   Re: OT: What Might Break getbostbyname() ?
Message-ID:  <71b5e95e34b45abfd7b1a32e3b05f27f.squirrel@www.tundraware.com>
In-Reply-To: <20130117064920.GD42469@dan.emsphone.com>
References:  <50F7783F.7020406@tundraware.com> <20130117064920.GD42469@dan.emsphone.com>

next in thread | previous in thread | raw e-mail | index | archive | help

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...




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?71b5e95e34b45abfd7b1a32e3b05f27f.squirrel>