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=188.8.131.52' would add a
"NS1=184.108.40.206" 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=220.127.116.11
--netmask=255.255.255.0 --gateway=18.104.22.168 --nameserver=22.214.171.124
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