You are not logged in.

#1 2009-01-22 12:00:23

chrispoole
Member
Registered: 2008-12-30
Posts: 121

[SOLVED] /etc/resolv.conf overwritten by nm

Hope someone can help...

My system is fully up to date.

I use NetworkManager to handle my wireless and wired connections. It works perfectly. But resolv.conf keeps getting overwritten, changing my nameservers from OpenDNS to 192.168.1.1. I have to change it manually at each boot.

I have tried adding my chosen nameservers to resolv.conf.head and/or resolv.conf.tail, but resolv.conf isn't getting overwritten with these files at boot (instead a message saying NetworkManager edited resolv.conf).

I have tried enabling and blacklisting dhcdbd in rc.conf to no avail.

The dhcddb parameters are also set to "-C resolv.conf", but since nm runs dhcddb itself, it doesn't seem to take any notice.

Any ideas?

Last edited by chrispoole (2009-01-25 18:15:01)

Offline

#2 2009-01-22 13:18:59

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [SOLVED] /etc/resolv.conf overwritten by nm

Make your changes in /etc/resolv.conf.head.  /etc/resolv.conf will continue to be overwritten but your nameservers in .head will be used first and foremost.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#3 2009-01-22 13:43:39

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: [SOLVED] /etc/resolv.conf overwritten by nm

I have tried that. resolv.conf.head and resolv.conf.tail files get ignored somehow...

Offline

#4 2009-01-23 21:32:45

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [SOLVED] /etc/resolv.conf overwritten by nm

I have the same problem. I have tried the instructions on the OpenDNS wiki page, but the nameserver address in /etc/resolv.conf still gets overwritten. I too use NetworkManager. Any ideas?

Offline

#5 2009-01-24 12:40:55

rson451
Member
From: Annapolis, MD USA
Registered: 2007-04-15
Posts: 1,233
Website

Re: [SOLVED] /etc/resolv.conf overwritten by nm

There is a switch you can set in your dhcpcd config so that resolv.conf is not over written, i believe it's "-C resolv.conf" but NetworkManager may not be using dhcpcd.


archlinux - please read this and this — twice — then ask questions.
--
http://rsontech.net | http://github.com/rson

Offline

#6 2009-01-24 12:47:42

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] /etc/resolv.conf overwritten by nm

Have you tried any of the suggestions in this thread?


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#7 2009-01-24 14:32:30

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [SOLVED] /etc/resolv.conf overwritten by nm

Xyne wrote:

Have you tried any of the suggestions in this thread?

Thanks! Will try it. big_smile

Offline

#8 2009-01-24 14:41:54

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [SOLVED] /etc/resolv.conf overwritten by nm

Jepp. The solution in post #13 works just fine. Thanks again!

Offline

#9 2009-01-24 14:51:52

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,963
Website

Re: [SOLVED] /etc/resolv.conf overwritten by nm

smile

Please edit your first post to prepend "[SOLVED]" to the subject.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#10 2009-01-24 15:56:18

thunderogg
Member
From: Rio de Janeiro
Registered: 2008-07-13
Posts: 172

Re: [SOLVED] /etc/resolv.conf overwritten by nm

It's not my thread--it's chrispoole's. I think we have to wait and see if it worked for him. smile

Offline

#11 2009-01-25 18:14:20

chrispoole
Member
Registered: 2008-12-30
Posts: 121

Re: [SOLVED] /etc/resolv.conf overwritten by nm

Thanks for the replies guys.

I decided to simply try wicd again, and have stuck with that. It has a simple GUI for setting DNS entries, and works just as well as nm.

I also find the rc.local trick a bit hackish -- surely this is an issue with nm or something?

rson451: I had tried this too. Same issue.

Offline

Board footer

Powered by FluxBB