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.
read the manpage about the -R option
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.
thats an issue to be taken up with the people who write dhcpcd ... not much Gentoo can do about it as a distribution