2 DNS, one machine

jdow jdow at earthlink.net
Tue Nov 30 01:40:36 UTC 2004


From: "John Summerfield" <debian at herakles.homelinux.org>
> On Tuesday 30 November 2004 07:23, Alexander Dalloz wrote:
> > > localhost is a perfectly valid host name and is _the standard_ namd
for
> > > the computer the program is running on.
> >
> > localhost is valid for a standalone host. It will not be proper in a
> > networked environment. Therefor for example the ifup script will change
> > the hostname when it is set to localhost and the host is getting his IP
> > by a DHCP server.
>
> Strangely, about 20 computers here are called "localhost."
>
> True, they have other names too, in some cases several other names.
>
> remember that IP address and therefore host names belong to Interfaces,
not
> Hosts.
>
> There's no limit to the number of names a computer can have. Have fun with
> this one (which I found by typo):
> summer at thylacine ~]$ host localhost.cds.nerseine.nu
> localhost.cds.nerseine.nu has address 212.181.91.6
> localhost.cds.nerseine.nu has address 69.25.75.72
> [summer at thylacine ~]$ host localmast.cds.nerseine.nu
> localmast.cds.nerseine.nu has address 69.25.75.72
> localmast.cds.nerseine.nu has address 212.181.91.6
> [summer at thylacine ~]$ host bereft.cds.nerseine.nu
> bereft.cds.nerseine.nu has address 69.25.75.72
> bereft.cds.nerseine.nu has address 212.181.91.6
> [summer at thylacine ~]$

Off hand that looks like a mess up on your part in the DNS records. All
my computers respond, in themselves, to localhost as 127.0.0.1. The DNS
query reports nothing found. Of course, that is on a Mandrake 10 and a
RedHat 9 pair of machines with the DNS engine on the RedHat 9 machine.

{^_^}





More information about the users mailing list