Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 42525

Summary: dhcpcd overwrites resolv.conf even if DHCP server doesn't provide DNS
Product: Gentoo Linux Reporter: i-Gene Leong <mrp>
Component: [OLD] Core systemAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: x86   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description i-Gene Leong 2004-02-22 16:02:49 UTC
I have a DHCP server that hands out addresses but with no additional information (no DNS, no gateway, no NTP, nothing). This is because I've set up a wireless network where clients must use OpenVPN to connect with a central host before they gain access to my LAN. What I find is that when I connect to it and run the net.(interface) script, /etc/resolv.conf is overwritten to use the DHCP server as the DNS, which is incorrect for my situation. (/etc/ntp.conf and /etc/yp.conf also get overwritten.)


Reproducible: Always
Steps to Reproduce:
1. Set up DHCP on a server. Do not specify DNS.
2. Connect a Gentoo client to the network, configure it for DHCP, and run net.eth0 start.

Actual Results:  
/etc/resolv.conf contains "nameserver <DHCP server IP>"


Expected Results:  
Nothing.
Comment 1 SpanKY gentoo-dev 2004-02-22 16:08:44 UTC
read the manpage about the -R option
Comment 2 i-Gene Leong 2004-02-22 16:17:33 UTC
My point is, it shouldn't be doing this if there's no DNS specified in DHCP.
I know about -R, but don't want to put it in because then I would likely have to take it out if I were to go out and use someone else's wireless network.
Comment 3 SpanKY gentoo-dev 2004-02-22 16:21:33 UTC
thats an issue to be taken up with the people who write dhcpcd ... not much Gentoo can do about it as a distribution