From owner-freebsd-questions@FreeBSD.ORG Wed Jun 11 23:57:07 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 17E9F37B404 for ; Wed, 11 Jun 2003 23:57:07 -0700 (PDT) Received: from geminix.org (gen129.n001.c02.escapebox.net [213.73.91.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4573C43FBD for ; Wed, 11 Jun 2003 23:57:06 -0700 (PDT) (envelope-from gemini@geminix.org) Received: from pd9e109b6.dip.t-dialin.net ([217.225.9.182] helo=geminix.org) by geminix.org with asmtp (TLSv1:AES256-SHA:256) (Exim 3.36 #1) id 19QM19-000MVb-00; Thu, 12 Jun 2003 08:57:03 +0200 Message-ID: <3EE82439.9060508@geminix.org> Date: Thu, 12 Jun 2003 08:56:57 +0200 From: Uwe Doering Organization: Private UNIX Site User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.3.1) Gecko/20030510 X-Accept-Language: en-us, en MIME-Version: 1.0 To: exec References: <3EE714D1.8010209@uni-mb.si> In-Reply-To: <3EE714D1.8010209@uni-mb.si> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-questions@FreeBSD.ORG Subject: Re: resolver problem X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Jun 2003 06:57:07 -0000 exec wrote: > It seems I have a problem with resolver. > [...] > > /etc/resolv.conf is right: > > domain my.uni.org > nameserver xx.xx.xx.xx > nameserver yy.yy.yy.yy > nameserver zz.zz.zz.zz > > All nameservers are working properly on every other machine. I deleted > host.conf file (which was also right) and nothing changes. What makes you think that deleting host.conf was the right thing to do? > Commands host, nslookup, and dig all work very well for both internal an > external sites. But ping for example fails: > > cannot resolve www.xxx.yy: Unknown host > [...] Host, nslookup, and dig use DNS automatically and exclusively, so there doesn't have to be any directive in the system telling them to do so. Most programs, however, use gethostbyname() etc. and need the 'bind' entry in host.conf, which you just removed by deleting this file. If you restore the file DNS lookups will work. Uwe -- Uwe Doering | EscapeBox - Managed On-Demand UNIX Servers gemini@geminix.org | http://www.escapebox.net