Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Changing The Hostname, "How to" in Mandrake 9.2??
Penguin666
post Nov 14 2003, 11:48 AM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 1
Joined: 14-November 03
Member No.: 1,804



I am jumping from Redhat to Mandrake 9.2
there used to be a file /etc/hostname where you could enter in the HOSTNAME for the computer.

I do not see this in Mandrake 9.2

What file do you use to rename the HOSTNAME? I don't want to do it through the GUI.

thanks
P666
Go to the top of the page
 
+Quote Post
Joey
post Nov 14 2003, 01:05 PM
Post #2


LinuxHelp Admin
*******

Group: Admin
Posts: 1,096
Joined: 18-September 02
Member No.: 1



Try typing:

hostname blahblahblah

as root.
Go to the top of the page
 
+Quote Post
hughesjr
post Nov 14 2003, 04:40 PM
Post #3


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



also make sure to add the hostname in the /etc/hosts file...

If the computer is using dhcp, add the hostname to the localhost line like this:

127.0.0.1 localhost new_hostname new_hostname.domain

if the pc has a static address, add an additional line like this right after the localhost line:

127.0.0.1 localhost
aaa.bbb.ccc.ddd new_hostname new_hostname.domain

(aaa.bbb.ccc.ddd is the static IP address ... new_hostname is the computer's name (ie. fred)... new_hostname.domain is the Fully Qualified domain name of the PC (if it has one, ie. fred.mydomain.com).


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 18th December 2017 - 12:00 AM