Package: ifupdown-extra Version: 0.25 Severity: minor Tags: patch Dear Maintainer,
/etc/resolv.conf on my laptop defines 3 name servers. One of these is only reachable at work. While at home: $ network-test INFO: This system has exactly one default route INFO: Host localhost answers to ICMP pings INFO: Loopback interface is working properly INFO: The eth0 interface is up INFO: The eth0 interface has IP address 192.168.1.222 assigned INFO: The eth0 interface has tx and rx packets. WARN: The wlan0 interface is down INFO: The router 192.168.1.1 is reachable INFO: This system is configured to use nameserver 127.0.0.1 INFO: Host 127.0.0.1 answers to ICMP pings INFO: Dns server 127.0.0.1 resolved correctly www.debian.org INFO: This system is configured to use nameserver 8.8.8.8 INFO: Host 8.8.8.8 answers to ICMP pings INFO: Dns server 8.8.8.8 resolved correctly www.debian.org INFO: This system is configured to use nameserver 192.168.123.3 WARN: Host 192.168.123.3 does not answer to ICMP pings ERR: Dns server 192.168.123.3 is not available ERR: There are 3 nameservers configured for this system and none of them works properly The last line gives a wrong summary of the situation because there is a glitch in the evaluating logic. The following trivial patch solves this minor problem and fixes a typo. Thanks for your attention, Gregor --- /usr/bin/network-test 2014-04-10 01:38:10.000000000 +0200 +++ /tmp/network-test 2014-10-08 22:08:27.218889110 +0200 @@ -631,7 +631,7 @@ err "The system does not have any nameserver configured" return 1 else - if [ "$status" -ne 0 ] ; then + if [ "$status" -ne 0 -a "$nsok" -eq 0 ] ; then if [ "$nsfound" -eq 1 ] ; then err "There is one nameserver configured for this system but it does not work properly" else @@ -641,7 +641,7 @@ if [ "$nsfound" -eq 1 ] ; then info "The nameserver configured for this system works properly" else - info "There are $nsfound nameservers is configured for this system and $nsok are working properly" + info "There are $nsfound nameservers configured for this system and $nsok are working properly" fi fi fi -- System Information: Debian Release: jessie/sid APT prefers testing-updates APT policy: (500, 'testing-updates'), (500, 'stable-updates'), (500, 'testing'), (500, 'stable') Architecture: i386 (i686) Kernel: Linux 3.16-2-686-pae (SMP w/2 CPU cores) Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages ifupdown-extra depends on: ii bind9-host [host] 1:9.9.5.dfsg-4 ii curl 7.38.0-2 ii dpkg 1.17.13 ii host 1:9.9.5.dfsg-4 ii iproute2 3.16.0-2 ii iputils-arping 3:20121221-5+b1 ii iputils-ping [ping] 3:20121221-5+b1 ii net-tools 1.60-26 ii netcat-traditional [netcat] 1.10-41 Versions of packages ifupdown-extra recommends: ii ethtool 1:3.16-1 ifupdown-extra suggests no packages. -- no debconf information -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org