Red Hat Bugzilla – Bug 53259
netconfig (pump) doesn't honor --nameserver arg.
Last modified: 2007-04-18 12:36:54 EDT
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.3) Gecko/20010801
Description of problem:
On a vanilla RedHat 7.1 box, setting up the networking using the command
line version of 'netconfig' doesn't work with the --nameserver arguement.
This is very important for custom configuration scripts. This worked in
6.2 (running 'netconfig --device=eth0 --nameserver=184.108.40.206' would add a
"NS1=220.127.116.11" to the /etc/sysconfig/network-scripts/ifcfg-eth0 file, and
configure networking accordingly.) Looking at the source code, this option
appears to be silently ignored.
Questions: How does one set up the nameserver through netconfig command
line arguements now? Why does this documented feature silently fail? and
what other options are there for specifying the DNS server through the
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run 'netconfig --device=eth20 --bootproto=none --ip=18.104.22.168
--netmask=255.255.255.0 --gateway=22.214.171.124 --nameserver=126.96.36.199
2. look at the resulting /etc/sysconfig/network-scripts/ifcfg-eth20
3. Notice nowhere is there a "NAMESERVER=" or "NS1=" option.
Actual Results: see above.
Expected Results: there should be a NAMESERVER= or NS1= or something in
the ifcfg-? file that will tell the networking to reconfigure the DNS for
closing as supported products don't use pump anymore