Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Ubuntu This forum is for the discussion of Ubuntu Linux.


  Search this Thread
Old 02-01-2006, 10:16 AM   #1
Registered: Oct 2004
Location: /usr/home
Distribution: Linux Mint, FreeBSD, Android
Posts: 356

Rep: Reputation: 32
In what other locations does Unbuntu define hostname?

The name of my host is correctly defined in /etc/hostname and /etc/hosts. Still, it would appear that there are some other locations where it is still identified as localhost.localdomain, as certain programs such as mail and the vnc config program identify the host as such. Fedora, the only other distro I know, has a /etc/sysconfig/network file which specifies the hostname, but Ubuntu doesn't have this. Where else could it be defined?
Old 02-02-2006, 02:53 AM   #2
Registered: Dec 2005
Location: Phoenix, AZ
Distribution: Ubuntu, Debian, Gentoo
Posts: 43

Rep: Reputation: 15
Actually, it's all in the ordering of the hosts file. Whichever entry is first after the localhost entry in the hosts file is generally used as the hostname, IIRC.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
AOL on UNBUNTU? ikagan Linux - Newbie 6 09-18-2005 09:20 AM
frustrated with unbuntu, want to try something new whorush Linux - Distributions 16 07-08-2005 01:50 AM
problem with unbuntu tgo Linux - Distributions 16 12-31-2004 08:47 PM
Unbuntu 4.10 webwolf70 Linux - Distributions 14 10-30-2004 09:35 PM
Unable to define RH7.3 hostname glorinc Linux - Networking 3 09-09-2002 07:37 AM > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:58 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration