how do I set a hostname under Linux - mandrake?
#1
this one is driving me potty! I can do hostname fred from a command line as root, but it's not kept during a reboot. so I created /etc/hostname and put fred in there, but if I do hostname I get an answer back of .
cheers,
greg
cheers,
greg
#2
If Mandrake is similar to Redhat (and I'm not sure if it is) then type hostname fred - this will change your hostname to fred. If you then type hostname again it should say fred.
Then edit /etc/hosts file and enter:
xxx.xxx.xxx.xxx fred
The x's are the IP address of fred.
Reboot the machine and voila!
Marc
Then edit /etc/hosts file and enter:
xxx.xxx.xxx.xxx fred
The x's are the IP address of fred.
Reboot the machine and voila!
Marc
#4
Not sure then mate. Found this on a site though:
".....You need to change your hostname, and that's
all. You can do that with MandrakeControlCenter or linuxconf, just
remember to restart desktops or there will be problems...."
Sorry don't know anything about mandrake. I guess the linuxconf file should be in the /etc/folder?
Marc
".....You need to change your hostname, and that's
all. You can do that with MandrakeControlCenter or linuxconf, just
remember to restart desktops or there will be problems...."
Sorry don't know anything about mandrake. I guess the linuxconf file should be in the /etc/folder?
Marc
Trending Topics
#8
Greg,
No idea if you've edited: /etc/sysconfig/network-scripts/ifcfg-eth0: and modified DHCP_HOSTNAME line aswell as /etc/sysconfig/network and set the HOSTNAME
The only other thing to try is check your /etc/HOSTNAME file, create it if you don't find it, it simply containd your hostname.
You could also check /etc/hosts to check you actually specify your hostname i.e
127.0.0.1 hostname.domain localhost localhost.domain hostname
[Edited by michael_clarkson - 3/24/2003 4:46:26 PM]
No idea if you've edited: /etc/sysconfig/network-scripts/ifcfg-eth0: and modified DHCP_HOSTNAME line aswell as /etc/sysconfig/network and set the HOSTNAME
The only other thing to try is check your /etc/HOSTNAME file, create it if you don't find it, it simply containd your hostname.
You could also check /etc/hosts to check you actually specify your hostname i.e
127.0.0.1 hostname.domain localhost localhost.domain hostname
[Edited by michael_clarkson - 3/24/2003 4:46:26 PM]
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM