nixCraft Linux Forum

nixCraft

Linux / UNIX Tech Support Forum

Redhat Change Domain Hostname

This is a discussion on Redhat Change Domain Hostname within the CentOS / RHEL / Fedora forums, part of the Linux Distribution category; I just forgot file name which can be used to change my domain name and hostname under RHEL 5 server. ...


Go Back   nixCraft Linux Forum > Linux Distribution > CentOS / RHEL / Fedora

Linux answers from nixCraft.


CentOS / RHEL / Fedora Discussion about Redhat Enterprise Linux or CentOS or Fedora Linux related problems.

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-08-2008, 08:21 PM
raj's Avatar
raj raj is offline
Senior Member
User
 
Join Date: Jun 2005
Location: Hyderabad
OS: Fedora, Debian Linux
Posts: 307
Thanks: 42
Thanked 8 Times in 8 Posts
Rep Power: 6
raj will become famous soon enough raj will become famous soon enough
Default Redhat Change Domain Hostname

I just forgot file name which can be used to change my domain name and hostname under RHEL 5 server. I need to setup domain as follows:
Code:
portal.example.com
__________________
Raj
Linux rulz.
I have never turned back in my life ; I shall not do so today.. haha
Reply With Quote
  #2 (permalink)  
Old 25-08-2008, 08:40 PM
rockdalinux's Avatar
Is that all you got?
User
 
Join Date: May 2005
Location: Planet Vegeta
OS: Redhat
Posts: 708
Thanks: 15
Thanked 19 Times in 18 Posts
Rep Power: 10
rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light rockdalinux is a glorious beacon of light
Default

Open /etc/sysconfig/network file and change / set HOSTNAME variable:
Code:
HOSTNAME=portal.example.com
You can use hostname command to set the system's host name:
Code:
hostname portal.example.com
__________________
Rocky Jr.
What's wrong? I hope I am not making you uncomfortable...

Never send a boy to do a mans job.
Reply With Quote
Reply

Tags
/etc/sysconfig/network , domainname , hostname , redhat , rhel hostname variable


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
NIS Domain Name Change Johnny Utah Getting started tutorials 0 19-06-2008 03:15 AM
Lighttpd URL Redirection domain.com/dir1/index.html to domain.com/dir1 mumuri Web servers 2 06-06-2008 12:53 PM
Masquerade domain sendmail how to chiku Mail Servers 2 10-07-2007 08:20 AM
Help, samba 3.0.23 join ads domain warren Linux software 1 09-01-2007 03:41 PM
set up hostname in ubuntu linux raj Linux software 1 20-12-2006 02:51 PM


All times are GMT +5.5. The time now is 11:26 PM.


Powered by vBulletin® Version 3.8.5 - Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.3.2
©2005-2010 nixCraft. All rights reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38