LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 08-18-2003, 08:26 PM   #1
guyd
LQ Newbie
 
Registered: Aug 2003
Location: Virginia Beach, VA
Distribution: Mandrake 9.1
Posts: 16

Rep: Reputation: 0
hostname


I am trying to change the hostname on my Mandrake 9.1 Linux installation. I thought the hostname file was located at /etc/hostname and that I could edit it with vi.

One problem is that I can't find the hostname file. There may be other problems that I don't know about.

Any help?
 
Old 08-18-2003, 09:01 PM   #2
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
/etc/sysconfig/network

it's in there
 
Old 08-18-2003, 09:01 PM   #3
devershetty
LQ Newbie
 
Registered: Jun 2003
Location: Gangavathi, Karnataka(state), INDIA
Distribution: Redhat 7.3
Posts: 28

Rep: Reputation: 15
Hi Guyd

i am not sure about Mandrake distro, but i could edit /etc/hosts file in RH7.2 and enter IP address and hostname of my choice.
I hope u can find similar /etc/hosts file in Mandrake.
 
Old 08-18-2003, 09:02 PM   #4
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
/etc/hosts
/etc/sysconfig/network
 
Old 08-18-2003, 09:02 PM   #5
DrOzz
Senior Member
 
Registered: May 2003
Location: Sydney, Nova Scotia, Canada
Distribution: slackware
Posts: 4,185

Rep: Reputation: 59
lol 3 posts at the same time
 
Old 08-18-2003, 10:07 PM   #6
martinman
Member
 
Registered: Apr 2003
Distribution: Gentoo 1.4
Posts: 290

Rep: Reputation: 30
my bad, you set the hostname in /etc/sysconfig/network, then add an entry to /etc/hosts
 
  


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
hostname gururaj Linux - Networking 2 01-05-2006 06:02 PM
hostname changes R153-Ab0V3 Linux - Newbie 6 01-11-2004 12:36 AM
Hostname jpauls104 Slackware 5 07-28-2003 01:16 PM
Hostname _maco_ Linux - General 3 07-07-2003 08:44 PM
hostname command vs. $HOSTNAME env. variable Silly22 Linux - Networking 2 03-29-2002 06:01 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:45 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration