Public bug reported:

Binary package hint: nstx

"/etc/default/nstx" sources "/etc/resolv.conf" to obtain the IP-address
of the first configured name server using the line:

NSTX_DNS_SERVER=`grep nameserver /etc/resolv.conf |head -1|awk '{print
$2}'`

In cases where there is a comment containing a nameserver-entry before
the valid entry, this commandline does not ignore it (as it should), but
reads the IP-address from the comment. With a little change this
behaviour could be fixed, e.g. like the following:

NSTX_DNS_SERVER=`grep nameserver /etc/resolv.conf | grep -v "^#" |head
-1|awk '{print $2}'`

** Affects: nstx (Ubuntu)
     Importance: Undecided
         Status: Unconfirmed

-- 
"/etc/default/nstx" uses IPs from comments in "/etc/resolv.conf"
https://bugs.launchpad.net/bugs/119941
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to