2 DNS, one machine
John Summerfield
debian at herakles.homelinux.org
Mon Nov 29 23:33:26 UTC 2004
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 ~]$
--
Cheers
John
More information about the fedora-list
mailing list