Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 42525 - dhcpcd overwrites resolv.conf even if DHCP server doesn't provide DNS
Summary: dhcpcd overwrites resolv.conf even if DHCP server doesn't provide DNS
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-22 16:02 UTC by i-Gene Leong
Modified: 2004-02-22 16:21 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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