You are not logged in.
I'm using a wired internet connection (eth0) configured as dhcp and this works fine.
However, I don't want dhcp to choose my DNS servers.
In other distros, I can get around this by adding my preferred DNS addresses as prepends in the /etc/dhcp3/dhclient.conf file (or it may be /etc/dhclient.conf).
However, I can't find anything equivalent here in ArchLinux.
Can somebody please advise me how to do this.
Thanks
Paul
Last edited by paulfxh (2008-03-13 20:20:44)
Offline
Add "-R" to DHCPCD_ARGS in /etc/conf.d/dhcpcd, then set up your nameservers as usual in /etc/resolv.conf.
Offline
If you use DHCP and you don't want your DNS servers to change every time you start your network, add the "-R" option to DHCPCD_ARGS in /etc/conf.d/dhcpcd (used by /etc/rc.d/network). This prevents DHCP from rewriting your /etc/resolv.conf every time:
DHCPCD_ARGS="-R -t 30 -h $HOSTNAME"
From http://wiki.archlinux.org/index.php/Configuring_network
Offline
Thank you for the replies.
That worked perfectly for me.
For any other newbie who may be wondering why I want to do this, my browser works abominably slowly without this.
Offline
If you're using netcfg2, just specify your DNS options in your profile, and it will prevent dhcp overwriting them.
Offline
If you're using netcfg2, just specify your DNS options in your profile, and it will prevent dhcp overwriting them.
How exactly do I do that? I just want to keep old /etc/resolv.conf and whatever contents it has, including comments. I know only how to set specific DNS servers with DNS1 and DNS2 options.
BTW, why doesn't netcfg respect arguments in /etc/conf.d/dhcpcd ?
Offline