| View previous topic :: View next topic |
| Author |
Message |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 179
|
Posted: Wed Feb 01, 2012 6:40 pm Post subject: /etc/resolv.conf keeps getting blanked out [Solved] |
|
|
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 |
|
 |
tony-curtis Tux's lil' helper

Joined: 20 May 2006 Posts: 106
|
Posted: Wed Feb 01, 2012 7:23 pm Post subject: |
|
|
| Are you sure it's something happening on wlan0 that is doing this? Maybe another network interface is responsible. |
|
| Back to top |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 179
|
Posted: Wed Feb 01, 2012 8:08 pm Post subject: |
|
|
| 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 |
|
 |
wuzzerd Guru

Joined: 05 Jan 2005 Posts: 378 Location: New Mexico
|
Posted: Thu Feb 02, 2012 1:51 am Post subject: |
|
|
| 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 |
|
 |
PM17E5 Apprentice


Joined: 10 Feb 2009 Posts: 179
|
Posted: Thu Feb 02, 2012 10:03 pm Post subject: |
|
|
| 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 |
|
 |
|