You are not logged in.

#1 2010-01-18 15:32:20

majiq
Member
Registered: 2009-03-06
Posts: 259

SOLVED Automatically Edited /etc/hosts - Automatic Hostname Assignment

So I've been away from school for the past month or so, and when I left everything worked dandy with my laptop. However, now I have a hostname issue. The hostname I have in my rc.conf is "Hero" and the /etc/hosts looked like this (if I remember correctly):

#
# /etc/hosts: static lookup table for host names
#
#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    Hero.localdomain    localhost Hero

# End of file

And everything worked dandily. However, now, whenever I connect my hostname is changed to something automatically:

#
# /etc/hosts: static lookup table for host names
#
#<ip-address>    <hostname.domain.org>    <hostname>
127.0.0.1    auto.assigned.address.edu    localhost.localdomain    localhost

# End of file

I thought that maybe this was the result of dhpcd getting the hostname from the server, so in my dhcpcd.conf I now have

 hostname Hero

. After changing the /etc/hosts file back and doing a /etc/rc.d/network restart and a /etc/rc.d/networkmanager restart (yeah, I use nm with GNOME), the /etc/hosts files remains unchanged. But after rebooting the computer, the /etc/hosts has only the automatically assigned IP with the standard localhost.localdomain and localhost.

Any suggestions on where to look next?

Last edited by majiq (2010-01-18 16:33:32)

Offline

#2 2010-01-18 16:06:18

wonder
Developer
From: Bucharest, Romania
Registered: 2006-07-05
Posts: 5,941
Website

Re: SOLVED Automatically Edited /etc/hosts - Automatic Hostname Assignment

what version of networkmanager?

http://bugs.archlinux.org/task/17742


Give what you have. To someone, it may be better than you dare to think.

Offline

#3 2010-01-18 16:32:45

majiq
Member
Registered: 2009-03-06
Posts: 259

Re: SOLVED Automatically Edited /etc/hosts - Automatic Hostname Assignment

Huh. I had actually scanned that bug before but must not have actually read it. I had also downgraded without effect, but I guess I must have not tested it correctly. Thanks for that heads up.

Offline

Board footer

Powered by FluxBB