Re: localhost resolves to wrong IP?

From: David (thunderbolt01_at_netscape.net)
Date: 11/29/03


Date: Sat, 29 Nov 2003 20:48:14 GMT

Jonathan wrote:
> Tried that - it's just the default settings.
>
> Yet if you do a ping localhost, or traceroute localhost it goes off to an IP
> other than 127.0.0.1.
>
> Well, it did until we put "localhost" pointing explicity to 127.0.0.1 into
> our DNS zone file. Services are now working - but why?

Not sure since you say it was working before but there should be
a section in /etc/named.conf and a line in /var/named/zone.com
file, zone.com being you domain-name.

/var/named/zone.com
localhost A 127.0.0.1

/etc/named.conf
// Provide reverse mapping for the loopback address
zone "0.0.127.in-addr.arpa" {
        type master;
        file "zone/127.0.0";

-- 
Confucius:  He who play in root, eventually kill tree.
Registered with The Linux Counter.  http://counter.li.org/
Slackware 9.1.0 Kernel 2.4.23 SMP i686 (GCC) 3.3.2
Uptime: 1 min, 0 users, load average: 0.37, 0.16, 0.06


Relevant Pages

  • Re: localhost resolves to wrong IP?
    ... > Tried that - it's just the default settings. ... > Yet if you do a ping localhost, or traceroute localhost it goes off to an IP ... > our DNS zone file. ...
    (comp.os.linux.security)
  • Re: localhost resolves to wrong IP?
    ... Tried that - it's just the default settings. ... Yet if you do a ping localhost, or traceroute localhost it goes off to an IP ...
    (comp.os.linux.networking)
  • Re: localhost resolves to wrong IP?
    ... Tried that - it's just the default settings. ... Yet if you do a ping localhost, or traceroute localhost it goes off to an IP ...
    (comp.os.linux.security)