Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
/etc/resolv.conf keeps getting blanked out [Solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 179

PostPosted: Wed Feb 01, 2012 6:40 pm    Post subject: /etc/resolv.conf keeps getting blanked out [Solved] Reply with quote

I have "dhcp_wlan0="nodns" set in /etc/conf.d/net however every once in a while, like perhaps every 5 different networks or reconnects, my /etc/resolv.conf file will get reset into the default:

Code:
# Generated by dhcpcd
# /etc/resolv.conf.head can replace this line
# /etc/resolv.conf.tail can replace this line


I'm not sure what could be wrong. Could anyone give me any pointers where to look?


Last edited by PM17E5 on Thu Feb 02, 2012 10:03 pm; edited 1 time in total
Back to top
View user's profile Send private message
tony-curtis
Tux's lil' helper
Tux's lil' helper


Joined: 20 May 2006
Posts: 106

PostPosted: Wed Feb 01, 2012 7:23 pm    Post subject: Reply with quote

Are you sure it's something happening on wlan0 that is doing this? Maybe another network interface is responsible.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 179

PostPosted: Wed Feb 01, 2012 8:08 pm    Post subject: Reply with quote

I'm quite sure, I don't use any other network interfaces, though I'll go ahead and add those lines for everything else I see in ifconfig -a just to be on the safe side. It usually happens when I restart wlan0. But perhaps it's just an idle eth0 doing something at bootup? Thanks for the tip, I'll see if it ever does it again.
Back to top
View user's profile Send private message
wuzzerd
Guru
Guru


Joined: 05 Jan 2005
Posts: 378
Location: New Mexico

PostPosted: Thu Feb 02, 2012 1:51 am    Post subject: Reply with quote

You might try creating /etc/resolv.conf.head with your desired resolv.conf as its contents. This is the first time I've seen that, but if I ever get bitten by dhcp overwriting my dhcpd I sure would give it a go.
Back to top
View user's profile Send private message
PM17E5
Apprentice
Apprentice


Joined: 10 Feb 2009
Posts: 179

PostPosted: Thu Feb 02, 2012 10:03 pm    Post subject: Reply with quote

Thank you, I didn't have much special in them just had 4.2.2.1 and 4.2.2.2 but while I'm at it I might as well try the google servers since I'm not a big fan of Verizon. So basically I just have the file duplicated with a .head at the end? I'll give it a try.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum