aboutsummaryrefslogtreecommitdiff
path: root/src/dns/test_gnunet_dns.sh
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2016-09-27 22:25:05 +0000
committerChristian Grothoff <christian@grothoff.org>2016-09-27 22:25:05 +0000
commit64732cdb0d95320d9274b26fcac6e617d6473248 (patch)
treea21c273a37f4f210dd577a30e746d6269db75ccf /src/dns/test_gnunet_dns.sh
parent94adb0e8c48d47e13e7319bb0fe228263b15abbf (diff)
downloadgnunet-64732cdb0d95320d9274b26fcac6e617d6473248.tar.gz
gnunet-64732cdb0d95320d9274b26fcac6e617d6473248.zip
fixes relating to intercepting DNS queries over IPv6
Diffstat (limited to 'src/dns/test_gnunet_dns.sh')
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh
index ab8cca4b1..84a57f87e 100755
--- a/src/dns/test_gnunet_dns.sh
+++ b/src/dns/test_gnunet_dns.sh
@@ -6,7 +6,7 @@ then
6 echo "This test only works if run as root. Skipping." 6 echo "This test only works if run as root. Skipping."
7 exit 77 7 exit 77
8fi 8fi
9if ! which sudo > /dev/null 9if ! which sudo > /dev/null
10then 10then
11 echo "This test requires sudo. Skipping." 11 echo "This test requires sudo. Skipping."
12 exit 77 12 exit 77
@@ -17,7 +17,7 @@ then
17 exit 77 17 exit 77
18fi 18fi
19if ! which nslookup > /dev/null 19if ! which nslookup > /dev/null
20then 20then
21 echo "This test requires nslookup. Skipping." 21 echo "This test requires nslookup. Skipping."
22 exit 77 22 exit 77
23fi 23fi
@@ -38,7 +38,7 @@ gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &
38sleep 1 38sleep 1
39# need to run 'nslookup' as 'nobody', as gnunet-service-dns runs as root 39# need to run 'nslookup' as 'nobody', as gnunet-service-dns runs as root
40# and thus 'root' is excepted from DNS interception! 40# and thus 'root' is excepted from DNS interception!
41LO=`sudo -u nobody nslookup gnunet.org | grep Address | tail -n1` 41LO=`sudo -u nobody nslookup -type=A gnunet.org | grep Address | tail -n1`
42if [ "$LO" != "Address: 127.0.0.1" ] 42if [ "$LO" != "Address: 127.0.0.1" ]
43then 43then
44 echo "Fail: got address $LO, wanted 127.0.0.1" 44 echo "Fail: got address $LO, wanted 127.0.0.1"