Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 09-09-2006, 02:39 AM   #1
Registered: Jul 2004
Posts: 256

Rep: Reputation: 30
changing host and domain name?

my hostname/domainname is currently localhost/localdomain. How do I change that?
Old 09-09-2006, 02:52 AM   #2
Senior Member
Registered: May 2001
Location: Indiana
Distribution: Gentoo, Debian, RHEL, Slack
Posts: 1,555

Rep: Reputation: 46
It will vary slightly from distro to distro, but mine is in /etc/conf.d/hostname and /etc/conf.d/dnsdomainname for gentoo
verify that /etc/hosts has the entry hostname

Last edited by musicman_ace; 09-09-2006 at 02:53 AM.
Old 09-10-2006, 10:10 AM   #3
LQ Newbie
Registered: Sep 2006
Location: Florencia, Ciego de Ávila, Cuba
Distribution: Knoppix 5.0.1
Posts: 2

Rep: Reputation: 0
Buddy, thats something that changes from one distro to another. I always do this:

hostname "" //without the ""
and then I go to /etc/hosts an change the line that mucicman_ace say to you
Old 09-30-2006, 02:21 PM   #4
LQ Newbie
Registered: Jul 2003
Location: Arkansas
Distribution: Fedora, Ubuntu, CentOS
Posts: 26

Rep: Reputation: 15
changing hostname

on fedora core, the hostname command won't do it permanently (goes away after reboot).

Try editing /etc/sysconfig/network


command, hostname

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 On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
DHCPD is updating BIND with <host>.<domain>.<domain>. diabelek Linux - Networking 15 10-11-2007 06:58 AM
Virtual host work, don't work stormrider_may Linux - Networking 4 05-03-2006 10:52 PM
host and domain name sobia Linux - General 2 11-18-2005 03:55 AM
Sendmail sending as, i want it to be from just PlatinumRik Linux - Software 5 10-07-2004 05:32 PM
Host own domain? dtran Linux - Networking 7 12-12-2003 03:01 PM

All times are GMT -5. The time now is 11:20 AM.

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