Re: Should /etc/hostname contain the whole FQDN?
- From: Jeff D <fixedored@xxxxxxxxx>
- Date: Fri, 31 Aug 2007 09:56:21 -0700 (PDT)
On Fri, 31 Aug 2007, Jonathan Wilson wrote:
Can anyone who /knows/ tell me what the proper officially correct ways of
setting the hostname and the FQDN are, please?
Thanks,
JW
--
in /etc/hostname :
myhostname
in /etc/hosts:
10.0.0.120 myhostname.mydomain.com myhostname
set those then run /etc/init.d/hostname.sh as root, this gets ran at boot up, but you can run it and reset the hostname this way.
now when I run hostname -f I get my FQDN, you'll have to restart any services that rely on this as well after changing it.
-+-
8 out of 10 Owners who Expressed a Preference said Their Cats Preferred Techno.
--
To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx with a subject of "unsubscribe". Trouble? Contact listmaster@xxxxxxxxxxxxxxxx
- References:
- Should /etc/hostname contain the whole FQDN?
- From: Jonathan Wilson
- Should /etc/hostname contain the whole FQDN?
- Prev by Date: Locale won't set
- Next by Date: Re: All New rc2.d Scripts get Ignored. Debian from KNOPPIX Solved!
- Previous by thread: Should /etc/hostname contain the whole FQDN?
- Next by thread: Locale won't set
- Index(es):
Relevant Pages
|
|