Stuart Clark wrote: > Hi > > Why can't I get the fqdn on my box? > > The man hostname says > > The complete FQDN of the system is returned with hostname --fqdn. > > But when I do it I just get the hostname > > > [EMAIL PROTECTED] root]# hostname --fqdn > server1 > [EMAIL PROTECTED] root]# hostname > server1 > [EMAIL PROTECTED] root]# domainname > example.com > [EMAIL PROTECTED] root]# cat /etc/hosts > # Do not remove the following line, or various programs > # that require network functionality will fail. > 127.0.0.1 localhost localhost.localdomain > 192.168.0.254 server1 server1.example.com
But "man hosts" says the format of /etc/hosts is: ip_address canonical_hostname aliases In other words, try reversing the 2nd and 3rd fields in your /etc/hosts. Steve Cowles -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list