You are not logged in.

#1 2008-10-20 23:44:16

SiB
Member
Registered: 2008-07-03
Posts: 38

[Solved] dhcpd (?) overwriting resolv.conf

Hi,

I recently upgraded to the latest kernel and version of dhcpd on my laptop and I can't get wireless working when logging in. I need to manually update /etc/resolv.conf with my nameserver and then it works. And don't know why but it seems that dhcpd is overwriting my resolv.conf.

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

Those two lines always appear when I reboot my system.

Last edited by SiB (2008-10-21 01:45:43)

Offline

#2 2008-10-20 23:57:56

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [Solved] dhcpd (?) overwriting resolv.conf

Im actually having a similar problem Sib.. do you get an error where it cant associate with your wireless adapter and asks u to either increase wireless_timeout or check for security? if so im having the same issue.. in order for me to get internet I have to use dhcpcd ath0 command to get my internet up


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#3 2008-10-21 00:00:48

SiB
Member
Registered: 2008-07-03
Posts: 38

Re: [Solved] dhcpd (?) overwriting resolv.conf

Zack89 wrote:

Im actually having a similar problem Sib.. do you get an error where it cant associate with your wireless adapter and asks u to either increase wireless_timeout or check for security? if so im having the same issue.. in order for me to get internet I have to use dhcpcd ath0 command to get my internet up

No not at all, my wireless adapter is correctly associated with my access point, and it is assigned with a valid ip adress. When I try to ping any domain, it can't resolve them because I think dhcpd is overwriting my resolv.conf.

Offline

#4 2008-10-21 00:08:52

Zack89
Member
Registered: 2008-09-24
Posts: 170

Re: [Solved] dhcpd (?) overwriting resolv.conf

Oh... when I setup my wireless i didnt touch my resolv.conf file.. I just added my interface and connection to rc.conf


Registered User number: 496613. Show your Tux Pride!
http://counter.li.org

Offline

#5 2008-10-21 00:11:57

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

Re: [Solved] dhcpd (?) overwriting resolv.conf

use /etc/resolv.conf.head or call dhcpcd with "-C resolv.conf"


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

Offline

#6 2008-10-21 01:48:17

SiB
Member
Registered: 2008-07-03
Posts: 38

Re: [Solved] dhcpd (?) overwriting resolv.conf

rson451 wrote:

use /etc/resolv.conf.head or call dhcpcd with "-C resolv.conf"

Okay it works correctly when I use resolv.conf.head. This was the only way to make it work because I think that it's my network manager (Wicd) that calls dhcpd, so I can't modify the params to call it.
Any particular reason why it was changed from previous version ?

Offline

#7 2008-10-21 22:04:40

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

Re: [Solved] dhcpd (?) overwriting resolv.conf

I would assume to extend the ability to disable hooks without adding a shit ton of options.  That would be a question for the devs of dhcpcd though.  Glad it works.


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

Offline

Board footer

Powered by FluxBB