LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 09-09-2006, 01:39 AM   #1
blackzone
Member
 
Registered: Jun 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, 01:52 AM   #2
musicman_ace
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

127.0.0.1 hostname

Last edited by musicman_ace; 09-09-2006 at 01:53 AM.
 
Old 09-10-2006, 09:10 AM   #3
NexusProx
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 "new.name.here" //without the ""
and then I go to /etc/hosts an change the line that mucicman_ace say to you
 
Old 09-30-2006, 01:21 PM   #4
RedCharlie
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
 
  


Reply

Tags
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 05:58 AM
Virtual host www.domain.com work, domain.com don't work stormrider_may Linux - Networking 4 05-03-2006 09:52 PM
host and domain name sobia Linux - General 2 11-18-2005 02:55 AM
Sendmail sending as host.domain.com, i want it to be from just domain.com. PlatinumRik Linux - Software 5 10-07-2004 04:32 PM
Host own domain? dtran Linux - Networking 7 12-12-2003 02:01 PM


All times are GMT -5. The time now is 07:27 PM.

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