Re: local host name changing

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

 



On Sat, 2004-09-11 at 21:59, Robert Locke wrote:
> The initial hostname is set in the file /etc/sysconfig/network.
> 
> Be aware that the networking startup scripts may obtain the hostname
> from a DHCP server or DNS server (as a reverse lookup).
> 
> If you set the name to something in /etc/sysconfig/network, it is
> probably a good idea to have that name appear in /etc/hosts (as you were
> thinking), to ensure that your machine knows how to find itself.

On my system I get:

[jlpastor@kalimotxo jlpastor]$ hostname
kalimotxo.euskal.net
[jlpastor@kalimotxo jlpastor]$ hostname --fqdn
kalimotxo.euskal.net
[jlpastor@kalimotxo jlpastor]$ dnsdomainname
euskal.net
[jlpastor@kalimotxo jlpastor]$

My /etc/sysconfig/network is:
[jlpastor@kalimotxo jlpastor]$ cat /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=kalimotxo.euskal.net

and my /etc/hosts:
[jlpastor@kalimotxo jlpastor]$ cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               kalimotxo.euskal.net kalimotxo
localhost.localdomain localhost

How is it that I get the same output for the hostname and hostname
--fqdn commands?

Juan

-- 
Please avoid sending me Word or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html



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

  Powered by Linux