How to stop Network Manager (I asssume) overwriting /etc/hosts in 10.10?
NoOp
glgxg at sbcglobal.net
Tue Mar 22 20:37:30 UTC 2011
On 03/21/2011 02:56 AM, Chris G wrote:
> On Sun, Mar 20, 2011 at 03:49:55PM -0400, Tom H wrote:
...
>> I have a 10.10 install where NM prepends a line within "/etc/hosts"
>>
>> <begin>
>> dhcp_ip_address hostname # Added by NM
>> 127.0.0.1 localhost.localdomain
>> 127.0.1.1 hostname
>> </end>
>>
>> Change "/etc/hosts" to
>>
>> <begin>
>> 127.0.0.1 localhost
>> 127.0.1.1 chris.yourdomain chris
>> </end>
>>
>> to check whether it's mis-edited.
>>
>> What's "cat /etc/hostname"?
>>
>> Is it "chris"? Does changing it to "chris.yourdomain" resolve your problem?
>>
> It's the fact that Network Manager insists on adding "127.0.0.1
> localhost.localdomain" that causes me a problem. Both apache2 and
> leafnode complain when finding that the domain name is localdomain.
>
> I have solved the problem for the moment simply be uninstalling Network
> Manager and installing wicd instead, that leaves everything as I want it
> but gives me a GUI interface to look at things still.
>
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/659872
[Aliases in /etc/hosts overwritten]
upstream:
https://bugzilla.gnome.org/show_bug.cgi?id=632157
And I see that you've added a comment on 659872 - the proposed:
$ apt-cache policy network-manager
network-manager:
Installed: 0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1
Candidate: 0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1
Version table:
*** 0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick-proposed/main
i386 Packages
100 /var/lib/dpkg/status
0.8.1+git.20100810t184654.ab580f4-0ubuntu2 0
500 http://us.archive.ubuntu.com/ubuntu/ maverick/main i386 Packages
https://launchpad.net/ubuntu/+source/network-manager
<https://launchpad.net/ubuntu/+source/network-manager/0.8.1+git.20100810t184654.ab580f4-0ubuntu2.1>
doesn't seem to work. I modified my /etc/hosts, disconnected via Network
Manger, and it still overwrites 127.0.0.1.
Might also be worth a look:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/659817
[NetworkManage does not set domain in /etc/hosts on DHCP connections ]
More related issues:
<https://bugs.launchpad.net/ubuntu/+source/network-manager?field.searchtext=hosts&orderby=-importance&search=Search&field.status%3Alist=NEW&field.status%3Alist=INCOMPLETE_WITH_RESPONSE&field.status%3Alist=INCOMPLETE_WITHOUT_RESPONSE&field.status%3Alist=CONFIRMED&field.status%3Alist=TRIAGED&field.status%3Alist=INPROGRESS&field.status%3Alist=FIXCOMMITTED&field.assignee=&field.bug_reporter=&field.omit_dupes=on&field.has_patch=&field.has_no_package=>
More information about the ubuntu-users
mailing list