Results 1 to 4 of 4
Hi . I'm trying to change the hostname on my box because I'm having network troubles with machines running window's XP . seems xp defaults to "localhost " for their ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 11-16-2004 #1Just Joined!
- Join Date
- Nov 2004
- Posts
- 18
changing the hostname
Hi . I'm trying to change the hostname on my box because I'm having network troubles with machines running window's XP . seems xp defaults to "localhost " for their hostnames too. I've used
"hostname -v new_host_name"
and edited the etc/hosts file to read
"127.0.0.0 new_host_name "
but when I reboot everything reverts to localhost except of course there is no localhost in the etc/hosts file so I get an error(warning) on boot.
Any Ideas ??
Thanks in advance.
- 11-16-2004 #2Linux Engineer
- Join Date
- Sep 2003
- Location
- Knoxhell, TN
- Posts
- 1,078
you have to have localhost in your /etc/hosts file.. it's the same as having both 127.0.0.1 and your LAN (local) IP address in /etc/hosts...
to change your hostname, edit /etc/hostnameTheir code will be beautiful, even if their desks are buried in 3 feet of crap. - esr
- 11-16-2004 #3Just Joined!
- Join Date
- Nov 2004
- Posts
- 18
Thanks. If I had bothered to read some of the other posts on this site I wouldn't have had to ask the question. Sorry about that . I actually got around it by editing the netbios name in the samba.conf file . The whiney XP machines can see me now !
Thanks again.
- 11-17-2004 #4Just Joined!
- Join Date
- Nov 2004
- Posts
- 3
Changing the host name
You could have also edited this file:
/etc/sysconfig/network
There should be a line in there that says:
HOSTNAME=whateveryourputinthere.com
I had to change my hostname and I edited this file.


Reply With Quote
