NetworkManager replaces resolv.conf with an useless comment

Bug #309596 reported by Arthur Rodrigues
2
Affects Status Importance Assigned to Milestone
network-manager (Ubuntu)
Fix Released
Low
Unassigned

Bug Description

Binary package hint: network-manager

Every time I reconnect to the internet, my resolv.conf file is replaced by the same file, which reads:
#Generated by NetworkManager

And I need to manually enter the DNS's IPs if I want to surf.

I configured correctly the DNSs in NetworkManager, but looks like it simply ignores the configurations...

I don't have resolvconf installed (at least aptitude remove doesn't do anything...) and I'd tried to remove write permissions to resolv.conf even to root, but at every reboot, the file is still replaced and the permissions roll back.

Moreover, the more I erase the wired connections (I use a 3G modem), the more wired connections appear to me! =-O
I thought the problem could be these connections, because they were configured to autoconnect at startup, but I changed that and the problem still remains...

Revision history for this message
Michael.Godawski (michael.godawski) wrote :

hey Arthur Rodrigues,

have you tried to make the resolv.conf file immutable with this command:

sudo chattr +i /etc/resolv.conf

not a solution, but might be a workaround.
regards
Michael

Changed in network-manager:
importance: Undecided → Low
status: New → Incomplete
Revision history for this message
Alexander Sack (asac) wrote :

all the issues you refer to should be fixed in jaunty. For the resolv.conf overwriteing, you should stop NM completely and then run dpkg-reconfigure resolvconf to get a good start.

Changed in network-manager (Ubuntu):
status: Incomplete → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.