diff options
author | Christian Grothoff <christian@grothoff.org> | 2016-09-27 22:25:05 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2016-09-27 22:25:05 +0000 |
commit | 64732cdb0d95320d9274b26fcac6e617d6473248 (patch) | |
tree | a21c273a37f4f210dd577a30e746d6269db75ccf /src/dns/test_gnunet_dns.sh | |
parent | 94adb0e8c48d47e13e7319bb0fe228263b15abbf (diff) | |
download | gnunet-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-x | src/dns/test_gnunet_dns.sh | 6 |
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 |
8 | fi | 8 | fi |
9 | if ! which sudo > /dev/null | 9 | if ! which sudo > /dev/null |
10 | then | 10 | then |
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 |
18 | fi | 18 | fi |
19 | if ! which nslookup > /dev/null | 19 | if ! which nslookup > /dev/null |
20 | then | 20 | then |
21 | echo "This test requires nslookup. Skipping." | 21 | echo "This test requires nslookup. Skipping." |
22 | exit 77 | 22 | exit 77 |
23 | fi | 23 | fi |
@@ -38,7 +38,7 @@ gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & | |||
38 | sleep 1 | 38 | sleep 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! |
41 | LO=`sudo -u nobody nslookup gnunet.org | grep Address | tail -n1` | 41 | LO=`sudo -u nobody nslookup -type=A gnunet.org | grep Address | tail -n1` |
42 | if [ "$LO" != "Address: 127.0.0.1" ] | 42 | if [ "$LO" != "Address: 127.0.0.1" ] |
43 | then | 43 | then |
44 | echo "Fail: got address $LO, wanted 127.0.0.1" | 44 | echo "Fail: got address $LO, wanted 127.0.0.1" |