skip test if link-local IPv6 DNS server is used
authorChristian Grothoff <christian@grothoff.org>
Sun, 9 Oct 2016 12:03:22 +0000 (12:03 +0000)
committerChristian Grothoff <christian@grothoff.org>
Sun, 9 Oct 2016 12:03:22 +0000 (12:03 +0000)
src/dns/test_gnunet_dns.sh

index 84a57f87eca258a119eaef517eff50878d15bd9d..57b9716f5b1b4caf676f0a051548a9bdd1fd3893 100755 (executable)
@@ -31,6 +31,11 @@ then
   echo "This test requires iptables with 'mangle' support. Skipping."
   exit 77
 fi
+if grep % /etc/resolv.conf &> /dev/null
+then
+  echo "This system seems to use a DNS server on an IPv6 link-local address, which is not supported. Skipping."
+  exit 77
+fi
 
 export PATH=".:$PATH"
 gnunet-service-dns -c dns.conf &