Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 2 Jun 2003 08:59:36 +0300
From:      "Konrad Neitzel" <neitzel@softmediatec.de>
To:        Jon FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: DNS error or idiot on parade
Message-ID:  <20030602085936.M81974@softmediatec.de>
In-Reply-To: <1054534897.1568.13.camel@localhost.localdomain>
References:  <1054534897.1568.13.camel@localhost.localdomain>

next in thread | previous in thread | raw e-mail | index | archive | help
Reynolds <jonr@destar.net> 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



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