Re: Debian resolves unkown hosts to itself
On 12/06/2007 03:32 PM Jonathan wrote:
> Hello, > > I have an odd thing happening with DNS. When I do something like: > > $ nslookup va.med.gov. > Server: 206.141.193.55 > Address: 206.141.193.55#53 > > ** server can't find va.med.gov: NXDOMAIN > > > Makes sense, right. But when I ping va.med.gov from the same server, it > seems to resolve to the public ip of the box Im pinging from. > > # ping va.med.gov > > PING mydomain.com (1.2.3.4) 56(84) bytes of data. > 64 bytes from host.mydomain.com (1.2.3.4): icmp_seq=1 ttl=64 > time=0.013 ms > > > --- mydomain.com ping statistics --- > 3 packets transmitted, 3 received, 0% packet loss, time 2002ms > rtt min/avg/max/mdev = 0.006/0.008/0.013/0.004 ms > > > > 1.2.3.4 is the public IP of the machine I'm pinging from. va.med.gov is > in no way affiliated with my domain. > > /etc/resolv.conf looks like: > > search mydomain.com > nameserver 4.2.2.2 > > > Any ideas? > > Thanks in advance! > >
Any chance you have in your /etc/hosts file:
1.2.3.4 mydomain.com va.med.gov
Somewhere you have va.med.gov associated with your IP address, and this is the
only place I can think of. When I put va.med.gov in my /etc/hosts file, I get
the same behavior.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Thu Dec 6 20:05:32 2007
This archive was generated by hypermail 2.1.8
: Wed Feb 27 2008 - 02:05:43 EST
|