Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: Should /etc/hostname contain the whole FQDN?

From: Jeff D <fixedored(at)gmail.com>
Date: Fri Aug 31 2007 - 12:56:21 EDT


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@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Received on Fri Aug 31 12:55:31 2007

This archive was generated by hypermail 2.1.8 : Sun Oct 07 2007 - 03:26:29 EDT


Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library