Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-30-2003, 06:15 PM   #1
LQ Newbie
Registered: Jul 2003
Distribution: RedHat 9
Posts: 4

Rep: Reputation: 0
Computer name/Domain name changing

I've successfully setup RedHat 9 now, but after I'm all done, I want to change the computer name, and domain name.

I have sendmail going, and am using the box for an internet router, but have yet to set up the DNS(still have to figure that one out...)

Where all do I need to look to change these two things?

Old 07-30-2003, 06:50 PM   #2
Registered: Jul 2003
Location: Canada
Posts: 214

Rep: Reputation: 31
To change the hostname, try:

man hostname
Old 07-30-2003, 07:08 PM   #3
Registered: Jul 2003
Location: Slovenia
Distribution: Slackware & FreeBSD
Posts: 209

Rep: Reputation: 30
Originally posted by peace
To change the hostname, try:

man hostname
nice one

You will have to edit your /etc/hosts file and there is another file which is RedHat specific and I don't remember exactly which one is it.
Old 07-31-2003, 10:00 AM   #4
LQ Newbie
Registered: Jul 2003
Location: UK
Distribution: RedHat / Slackware
Posts: 6

Rep: Reputation: 0
You'll need to perform the following:

- type: hostname <new_hostname>
- edit /etc/sysconfig/network: The hostname entry is read during system bootup, and reset
- edit /etc/hosts: your old hostname should no longer refer to, so replace it with your new hostname.

Hope this helps!

Old 07-31-2003, 03:29 PM   #5
Registered: Jul 2003
Location: MI
Distribution: redhat,mandrake,debian
Posts: 68

Rep: Reputation: 15
In Xwindows you can change the hostname without any of the daemons complaining.


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
Changing Hostname to Domain Name mikebua56 Linux - Newbie 1 11-06-2005 06:53 PM
changing domain name corbis_demon Fedora 2 09-27-2004 02:18 AM
Changing domain name corbis_demon Linux - Newbie 2 09-16-2004 07:48 AM
Changing domain name Mikessu Linux - Networking 2 12-29-2003 09:16 AM
changing domain in qmail forand Linux - Software 3 05-14-2002 10:41 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 06:44 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
Open Source Consulting | Domain Registration