Red Hat Bugzilla – Bug 250884
[RFE] Allow s-c-n to override domain-name (15) DHCP option
Last modified: 2007-11-30 17:12:12 EST
Description of problem:
I would like to use system-config-network to add a domain to the dns search path
via the DNS tab. As expected /etc/resolv.conf gets modified when I use the GUI
to add a value to the "DNS search path" field and select File -> Save and works
However, when i restart my network /etc/resolv.conf gets overwritten by the dhcp
configuration script (at least the file states "generated by
/sbin/dhclient-script" on the first line and my search path data is gone.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
0. You need to configure your network card to get ip config from DHCP
1. 'ping evert' in a terminal should give you "ping: unknown host evert"
2. start system-config-network choose the DNS tab, and enter 'resare.com' in the
'DNS search path:' field.
3. choose File -> Save
4. 'ping evert' in a terminal should give you "PING evert.resare.com
5. '/sbin/service network restart'
6. run 'ping evert' in a teriminal
"ping: unknown host evert"
PING evert.resare.com (188.8.131.52) 56(84) bytes of data.
Is DHCP option 15 set in the DHCP server? (option domain-name for ISC DHCPD, -s
or --domain command-line arguments or domain config option for dnsmasq)
It seems like that. The DHCP server is an integrated NAT/Firewall/Wireless appliance from D-Link that also
answers name server queries. To the best of my knowledge the name server search path i not configurable
in the user interface of the appliance, so being able to supply that information with system-config-
network seems like a reasonable ting IMHO
It can be done via /etc/dhclient.conf, but it would be nice to manage it in a