You are not logged in.
Pages: 1
Is there anyway I can use DHCP on my eth0 interface without having it overwrite my /etc/resolv.conf with the DHCP server's DNS settings?
Offline
dhcp and dns should be independant... primary and secondary dns servers should be set by dhcp...
as long as eth0 is up and a valid interface, then
dhcpcd eth0
should set up dhcp.
personally I've never had to touch resolv.conf settings
Offline
primary and secondary dns servers should be set by dhcp...
Right, but how do I keep DHCP from overwriting my own DNS settings in /etc/resolv.conf? I have a working DNS that is provided to me by my DHCP server. I want to use a different DNS server than what my DHCP server gives me and I don't want to have to change my /etc/resolv.conf every time I boot. I can manually run dhcpcd -r to keep this from happening but I want to know how to set up rc.conf to do this for me automatically.
Offline
look here:
http://bbs.archlinux.org/viewtopic.php? … cd+rc+conf
yeah, it's a hack.... but it works
Offline
That link points me to a file called /etc/conf.d/network that doesn't exist on my system. From what I understood of that thread, it doesn't exist on anyone's system. They were referring to how nice it would be if that file existed and I have to say I agree. But, that doesn't help me at this moment. Any other ideas?
Offline
please reread the thread - the initial post says
But the network init script uses dhcpcd, and sends the hostname defined in /etc/rc.conf. So I modified rc.conf to include a DHCP_HOSTNAME variable, and used that in /etc/rc.d/network.
it's a fix for your problem. declare a variable in rc.conf and edit the network script
Offline
I did read the thread and I already edited my network startup script in that way. I just didn't like to end this thread with a hack fix. I wanted to see if there was any other way to do this under the current system so that if the right package were to be upgraded, my changes don't get wiped out.
The fix you suggested did help me out for the time being though. Thanks!
Offline
I would go to the bug report section on the home page and add a "feature request"
Offline
Offline
Pages: 1