Hi,

hostname = name of the host

FQDN = Fully Qualified Domain Name

In hostname you are not dealing with domains, but just with the host regardless 
to the "internet" addressing.

Look what man hostname tells:

"hostname will print the name of the system as returned by the gethostname(2) 
function."


gethostname() :
"These  functions  are  used to access or to change the host name of the
current processor."

So, hostname give you the name of the host, hostname -f the fqdn resulting from 
the valure returned by getdomainname() 

So, you put in /etc/hostname only the pure name of the host and it has nothing 
to do, *directly* with dns resolution. Try to put just your hostname in 
/etc/hostname and comment it out in /etc/host and you won't be able to ping the 
hostname (unless you have it in a dns record).

What I mean, from my point of view, is that /etc/hostname is more a label for 
the host the system is running on than a piece of dns resolution. Oh, well, 
directly.

Giorgio


Il Friday 19 September 2008 19:05:53 Jonathan Jesse ha scritto:
> Is the answer to this is normal or is the answer to just edit the name in
> /etc/hostname?
>
> On Fri, Sep 19, 2008 at 9:55 AM, Soren Hansen <[EMAIL PROTECTED]> wrote:
> > On Thu, Sep 18, 2008 at 12:00:13PM +0100, Andrew Hodgson wrote:
> > > Is this normal behaviour, and is the recommendation to have the
> > > /etc/hostname set to just the server name (without the domain)?
> >
> > Yes.
> >
> > --
> > Soren Hansen               |
> > Virtualisation specialist  | Ubuntu Server Team
> > Canonical Ltd.             | http://www.ubuntu.com/
> >
> > --
> > ubuntu-server mailing list
> > [email protected]
> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
> > More info: https://wiki.ubuntu.com/ServerTeam


-- 
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Reply via email to