From owner-freebsd-questions@FreeBSD.ORG Thu Jan 17 15:21:09 2013 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 29A348CF for ; Thu, 17 Jan 2013 15:21:09 +0000 (UTC) (envelope-from tundra@tundraware.com) Received: from ozzie.tundraware.com (ozzie.tundraware.com [75.145.138.73]) by mx1.freebsd.org (Postfix) with ESMTP id E5CC77BD for ; Thu, 17 Jan 2013 15:21:08 +0000 (UTC) Received: from www.tundraware.com (localhost [127.0.0.1]) by ozzie.tundraware.com (8.14.6/8.14.6) with ESMTP id r0HFKMmM002666 for ; Thu, 17 Jan 2013 09:20:22 -0600 (CST) (envelope-from tundra@tundraware.com) Received: from 66.175.245.1 (proxying for unknown) (SquirrelMail authenticated user tundra) by www.tundraware.com with HTTP; Thu, 17 Jan 2013 15:20:22 -0000 Message-ID: In-Reply-To: <20130117064920.GD42469@dan.emsphone.com> References: <50F7783F.7020406@tundraware.com> <20130117064920.GD42469@dan.emsphone.com> Date: Thu, 17 Jan 2013 15:20:22 -0000 Subject: Re: OT: What Might Break getbostbyname() ? From: "Tim Daneliuk" To: "FreeBSD Mailing List" User-Agent: SquirrelMail/1.4.22 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) Importance: Normal X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.7 (ozzie.tundraware.com [127.0.0.1]); Thu, 17 Jan 2013 09:20:22 -0600 (CST) X-TundraWare-MailScanner-Information: Please contact the ISP for more information X-TundraWare-MailScanner-ID: r0HFKMmM002666 X-TundraWare-MailScanner: Found to be clean X-TundraWare-MailScanner-From: tundra@tundraware.com X-Spam-Status: No X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: tundra@tundraware.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jan 2013 15:21:09 -0000 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...