FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor


 
 
LinkBack Thread Tools
 
Old 09-18-2008, 11:00 AM
"Andrew Hodgson"
 
Default Hostname in 8.04

Hi all,

I am relatively new to Ubuntu but have used Debian.

I installed a couple of servers for use with LAMP projects. On the
first server I installed, when asked for the hostname, I entered in the
FQDN of the server.

I noticed afterwards that doing hostname -f gave
server.domain.com.domain.com, and thus when I do some package installs,
they are thinking the FQDN is the same. I did a new install on a
different server, and just entered in the hostname without the domain,
then ensured that /etc/resolv.conf was configured correctly, and now get
the expected output.

Is this normal behaviour, and is the recommendation to have the
/etc/hostname set to just the server name (without the domain)?

Thanks.
Andrew.

--
allpay.net Limited, Fortis et Fides, Whitestone Business Park, Whitestone, Hereford, HR1 3SE.
Registered in England No. 02933191. UK VAT Reg. No. 666 9148 88.

Telephone: 0870 243 3434, Fax: 0870 243 6041.
Website: www.allpay.net
Email: enquiries@allpay.net

This email, and any files transmitted with it, is confidential and intended solely for the use of the individual or entity to whom it is addressed. If you have received this email in error please notify the allpay.net Information Security Manager at the number above.

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-19-2008, 01:55 PM
Soren Hansen
 
Default Hostname in 8.04

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
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-19-2008, 05:05 PM
"Jonathan Jesse"
 
Default Hostname in 8.04

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 <soren@ubuntu.com> 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
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server

More info: https://wiki.ubuntu.com/ServerTeam


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-19-2008, 06:17 PM
Giorgio Zarrelli
 
Default Hostname in 8.04

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 <soren@ubuntu.com> 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


> > ubuntu-server@lists.ubuntu.com


> > https://lists.ubuntu.com/mailman/listinfo/ubuntu-server


> > More info: https://wiki.ubuntu.com/ServerTeam










--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 08:40 AM
Soren Hansen
 
Default Hostname in 8.04

On Fri, Sep 19, 2008 at 01:05:53PM -0400, Jonathan Jesse wrote:
>>> Is this normal behaviour, and is the recommendation to have the
>>> /etc/hostname set to just the server name (without the domain)?
>> Yes.
> Is the answer to this is normal or is the answer to just edit the name
> in /etc/hostname?

Yes

It is normal behaviour and the recommendation is to have the
/etc/hostname set ot just the server name (without the domain).

No editing required. When the installer asks you this:

Please enter the hostname for this system.

The hostname is a single word that identifies your system to the
network.

...you just enter your hostname. No more, no less.

--
Soren Hansen |
Virtualisation specialist | Ubuntu Server Team
Canonical Ltd. | http://www.ubuntu.com/
--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 03:34 PM
"Miano, Steven M."
 
Default Hostname in 8.04

-----Original Message-----
From: Soren Hansen
Sent: Monday, September 22, 2008 4:41 AM
To: ubuntu-server@lists.ubuntu.com
Subject: Re: Hostname in 8.04

On Fri, Sep 19, 2008 at 01:05:53PM -0400, Jonathan Jesse wrote:
>>>> Is this normal behaviour, and is the recommendation to have the
>>>> /etc/hostname set to just the server name (without the domain)?
>>> Yes.
>> Is the answer to this is normal or is the answer to just edit the
>> name in /etc/hostname?

>Yes
>
>It is normal behaviour and the recommendation is to have the
>/etc/hostname set ot just the server name (without the domain).
>
>No editing required. When the installer asks you this:
>
> Please enter the hostname for this system.
>
> The hostname is a single word that identifies your system to the
> network.
>
>...you just enter your hostname. No more, no less.
>Soren Hansen |
>Virtualisation specialist | Ubuntu Server Team
>Canonical Ltd. | http://www.ubuntu.com/

Also be sure to edit /etc/hosts, as sudo (and I'm sure other utilities) will not be happy if you decide to only change your /etc/hostname, and not reflect that change in /etc/hosts.

~Steven

Post Script, sorry for the double Soren.

CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it.

--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 04:17 PM
"Jim Tarvid"
 
Default Hostname in 8.04

Also remember that ServerName in apache should resolve and that may depends on the hosts entry too.

On Mon, Sep 22, 2008 at 11:34 AM, Miano, Steven M. <Steven.Miano@mybrighthouse.com> wrote:

-----Original Message-----

From: Soren Hansen

Sent: Monday, September 22, 2008 4:41 AM

To: ubuntu-server@lists.ubuntu.com

Subject: Re: Hostname in 8.04



On Fri, Sep 19, 2008 at 01:05:53PM -0400, Jonathan Jesse wrote:

>>>> Is this normal behaviour, and is the recommendation to have the

>>>> /etc/hostname set to just the server name (without the domain)?

>>> Yes.

>> Is the answer to this is normal or is the answer to just edit the

>> name in /etc/hostname?



>Yes

>

>It is normal behaviour and the recommendation is to have the

>/etc/hostname set ot just the server name (without the domain).

>

>No editing required. When the installer asks you this:

>

> * Please enter the hostname for this system.

>

> * The hostname is a single word that identifies your system to the

> network.

>

>...you just enter your hostname. No more, no less.

>Soren Hansen * * * * * * * |

>Virtualisation specialist *| Ubuntu Server Team

>Canonical Ltd. * * * * * * | http://www.ubuntu.com/



Also be sure to edit /etc/hosts, as sudo (and I'm sure other utilities) will not be happy if you decide to only change your /etc/hostname, and not reflect that change in /etc/hosts.



~Steven



Post Script, sorry for the double Soren.



CONFIDENTIALITY NOTICE: This e-mail may contain information that is privileged, confidential or otherwise protected from disclosure. If you are not the intended recipient of this e-mail, please notify the sender immediately by return e-mail, purge it and do not disseminate or copy it.




--

ubuntu-server mailing list

ubuntu-server@lists.ubuntu.com

https://lists.ubuntu.com/mailman/listinfo/ubuntu-server

More info: https://wiki.ubuntu.com/ServerTeam



--
http://ls.net
http://drupal.ls.net


--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 
Old 09-22-2008, 10:41 PM
Onno Benschop
 
Default Hostname in 8.04

Jim, I fixed your top-posting for you

On 23/09/08 00:17, Jim Tarvid wrote:
> On Mon, Sep 22, 2008 at 11:34 AM, Miano, Steven M. <Steven.Miano@mybrighthouse.com> wrote:
>
>> Also be sure to edit /etc/hosts, as sudo (and I'm sure other utilities)
>> will not be happy if you decide to only change your /etc/hostname, and not
>> reflect that change in /etc/hosts.
>>
> Also remember that ServerName in apache should resolve and that may depends
> on the hosts entry too.
>

Is there a script that does this properly - tracking hostname entries
for installed applications with the ability to change it, or is it
assumed that once /etc/hostname and /etc/hosts are changed, everything
else uses those?


--
Onno Benschop

Connected via Optus B3 at S3154'06" - E11550'39" (Yokine, WA)
--
()/)/)() ..ASCII for Onno..
|>>? ..EBCDIC for Onno..
--- -. -. --- ..Morse for Onno..

ITmaze - ABN: 56 178 057 063 - ph: 04 1219 8888 - onno@itmaze.com.au



--
ubuntu-server mailing list
ubuntu-server@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam
 

Thread Tools




All times are GMT. The time now is 11:34 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org