Re: 2 DNS, one machine

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@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@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@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@thylacine ~]$



-- 
Cheers
John


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux