Red Hat Bugzilla – Bug 398351
No way to set custom DNS with DHCP connection
Last modified: 2007-12-04 00:13:51 EST
Description of problem:
Hi, I'm using NetworkManager on gnome with fedora 8, installed using the live
cd. On my DHCP connection, I need to set custom DNS to access any site .. The
default 192.168.1.1 doesn't cut it. On other distros like ubuntu/debian I can
edit /etc/dhcp3/dhclient.conf or something equivalent. However on fedora there
is no way to set the custom dns. I tried editing the settings in
system-config-network, however NM always overrides it and mangles my
/etc/resolv.conf. I also tried making /etc/resolv.conf read-only after suitably
editing it, however it was replaced the next time NM connected. Please include a
suitable way to manage custom DNSes in fedora.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. Edit /etc/resolv.conf
2. Restart DHCP connection
/etc/resolv.conf is modified to include only one entry - 192.168.1.1
There should be some way to set custom DNS
How are DHCP connections managed on fedora ? Is there something equivalent to
/etc/dhcp3/dhclient.conf like on ubuntu ?
yes, you probably want /etc/dhclient.conf. Options set there are the same
options you'd set in /etc/dhcp3/dhclient.conf. It's just in a different place.
You don't think I wouldn't have tried out everything before filing a bug, do you
That file doesn't exist on my system. I had the same problem in fedora 7.
You can simply create the file and fill it out like you need. There's usually
no need for that file unless you wish to override the default DHCP behavior,
therefore it doesn't need to exist until you need it.
Ah, that worked wonderfully. Thank you, Dan. :)
I think this should be mentioned in the documentation somewhere..