From owner-freebsd-questions@FreeBSD.ORG Mon Jun 2 00:01:10 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 7AE5137B401 for ; Mon, 2 Jun 2003 00:01:10 -0700 (PDT) Received: from mail.destar.net (240-7-237-24.gci.net [24.237.7.240]) by mx1.FreeBSD.org (Postfix) with SMTP id 8D1F743F93 for ; Mon, 2 Jun 2003 00:01:09 -0700 (PDT) (envelope-from jonr@destar.net) Received: (qmail 23346 invoked by uid 85); 2 Jun 2003 06:52:18 -0000 Received: from jonr@destar.net by mail.destar.net by uid 82 with qmail-scanner-1.16 (clamscan: 0.54. spamassassin: 2.55. Clear:. Processed in 1.50373 secs); 02 Jun 2003 06:52:18 -0000 Received: from unknown (HELO ?192.168.1.111?) (192.168.1.1) by 192.168.1.20 with SMTP; 2 Jun 2003 06:52:15 -0000 From: Jon Reynolds To: FreeBSD In-Reply-To: <20030602085936.M81974@softmediatec.de> References: <1054534897.1568.13.camel@localhost.localdomain> <20030602085936.M81974@softmediatec.de> Content-Type: text/plain Organization: Message-Id: <1054536925.1575.39.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.3 Date: 01 Jun 2003 22:55:25 -0800 Content-Transfer-Encoding: 7bit Subject: Re: DNS error or idiot on parade 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: Mon, 02 Jun 2003 07:01:10 -0000 On Sun, 2003-06-01 at 21:59, Konrad Neitzel wrote: > Reynolds wrote: > > I am trying to setup a nameserver for a domain and I have been > > reading the DNS/Bind book from O'Reilly and I somehow got the > > private IP showing up when I try and ping from a remote site. > > Whenever I type in ping www.example.com, it tries to ping > > 192.168.1.20 instead of the external IP. I don't have this IP > > in my named.conf or example.com db file anywhere...anymore :). > > I have reloaded my named daemon and it reports no errors in > > the message log. How can I fix this so that it resolves to the > > correct IP? > > You could check your DNS Server with "host" e.g.: > host www.example.com 127.0.0.1 > > That would query the nameserver on 127.0.0.1 (localhost) for the name > www.example.com. > > If this reports the right IP: > Have you checked your /etc/hosts? Maybe you set your system to check > that first and you got the name there? > > Just some thoughts from my side ... > > With kind regards, > > Konrad Neitzel > > -- > SoftMediaTec GmbH > Tel: 0172 / 689 31 45 > Fax: 069 / 90 50 99 53 Thanks Konrad, actually it was something really stupid. The remote server I was using to check it had it cached and once I rebooted it worked fine, Thanks Luke! I don't want to tll you how many hours I spent trying to figure this out when it probably has been working for awhile. I am my own worst enemy. Jon