LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-11-2005, 10:33 AM   #1
defa0009
Member
 
Registered: Jun 2003
Posts: 185

Rep: Reputation: 31
Changing server hostname and domain name


I have a remote server that I run sendmail and the apache webserver on. When the server was originally setup by the company I rent it from it was given a hostname in the form of host.domain.com? I thought a host name should be just host without the domain.com? They also gave the domainname the same host.domain.com?

Is it possible to change the hostname and domainname to reflect my own personal hostname and domainname (not the server company's host and domain) without causing networking problems?

I have my own domain name (ie. mydomain.com) and I have created a CName record for it called server (ie. server.mydomain.com). What I'd like to do is change the hostname to 'server' and the domainname to 'mydomain.com'. Here are the only 2 steps I can think of to do this but I'd like confirmation from experts before I do it so I don't screw my system!
If there are more steps required please post them...

TIA.


Step 1: edit the /etc/sysctl.conf file and add these settings....

# Set the host and domainname
kernel.domainname = mydomain.com
kernel.hostname = server

Step 2: edit /etc/sysconfig/network file to reflect

HOSTNAME=server
 
Old 11-11-2005, 07:57 PM   #2
Mad Scientist
Member
 
Registered: May 2003
Posts: 167

Rep: Reputation: 30
I would do a

Code:
man hostname
It might give you some ideas about where to look for such settings.
 
  


Reply


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
Apache domain and hostname bcom Linux - Software 0 05-27-2004 02:35 PM
Wrong Hostname in a MS Domain Zeb Linux - Networking 0 03-16-2004 03:32 AM
hostname vs domain racediver007 Linux - Newbie 5 03-20-2003 03:30 PM
Understanding hostname/domain name SpaceGroove Linux - Newbie 2 01-26-2003 05:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration