[NTLUG:Discuss] Host / Domain Name
Burton Strauss
Burton_Strauss at comcast.net
Fri Sep 2 11:03:07 CDT 2005
Ultimately it goes in sysconfig/network, e.g.:
HOSTNAME=tigger.burtonstrauss.local
Or in sysconfig/network-scripts/ifcfg-eth0, e.g.:
DHCP_HOSTNAME=tigger
Whether it's ONE or BOTH that's necessary I don't know for sure - you would
have to read the scripts to see which takes priority. The automatic setup
sets both.
Then during boot, RH creates the dhclient-eth#.conf file, e.g.
dhclient-eth0.conf:
send host-name "tigger"; # temporary RHL ifup addition
It's also critical to have the name in hosts:
127.0.0.1 localhost.localdomain localhost tigger
tigger.burtonstrauss.local
-----Burton
-----Original Message-----
From: discuss-bounces at ntlug.org [mailto:discuss-bounces at ntlug.org] On Behalf
Of Dennis Rice
Sent: Friday, September 02, 2005 9:48 AM
To: discuss at ntlug.org
Subject: [NTLUG:Discuss] Host / Domain Name
When using RH / Fedora, I can issue the command 'hostname', and as I entered
the information, I get back the hostname and domain name, as I entered them
during installation. If I query the system for the domain name, I get
nothing.
If I issue the command 'hostname -f', I get back "unknown host", and
likewise for 'hostname -d'. I would have assumed that these commands would
have trunkated the fqdn.
If I issue the command 'domainname', I get back "(none)". When doing a man
on domainname, I get the page for hostname.
I can assign a domain name with the domainname command, but it is not
permanent.
Where does RH / Fedora store the domain name? Would appreciate if someone
could provide insight and help my knowledge of this situation.
Want to document it in my book.
Thanks,
Dennis Rice
dennis at dearroz.net
_______________________________________________
https://ntlug.org/mailman/listinfo/discuss
More information about the Discuss
mailing list