diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-24 15:38:12 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-24 15:38:12 +0000 |
commit | 035c4a1206ffcede71e9211ecbb588e71041ada2 (patch) | |
tree | 7ef87e7057cc73b8937bd59fd0a39e9a3dbd8471 /src/dns | |
parent | dd57878e27d53066bd63b2e03d495d627acc871d (diff) | |
download | gnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.tar.gz gnunet-035c4a1206ffcede71e9211ecbb588e71041ada2.zip |
-check for sudo, nslookup
Diffstat (limited to 'src/dns')
-rw-r--r-- | src/dns/dns.conf.in | 2 | ||||
-rwxr-xr-x | src/dns/test_gnunet_dns.sh | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/src/dns/dns.conf.in b/src/dns/dns.conf.in index 65cb392e2..84dc3aaa4 100644 --- a/src/dns/dns.conf.in +++ b/src/dns/dns.conf.in | |||
@@ -39,5 +39,5 @@ IPV4MASK = 255.255.0.0 | |||
39 | # of a DNS resolver to use. Only works if "PROVIDE_EXIT" is also set to YES. Must absolutely | 39 | # of a DNS resolver to use. Only works if "PROVIDE_EXIT" is also set to YES. Must absolutely |
40 | # NOT be an address of any of GNUnet's virtual tunnel interfaces. Use a well-known | 40 | # NOT be an address of any of GNUnet's virtual tunnel interfaces. Use a well-known |
41 | # public DNS resolver or your ISP's resolver from /etc/resolv.conf. | 41 | # public DNS resolver or your ISP's resolver from /etc/resolv.conf. |
42 | # DNS_EXIT = 8.8.8.8 | 42 | DNS_EXIT = 8.8.8.8 |
43 | 43 | ||
diff --git a/src/dns/test_gnunet_dns.sh b/src/dns/test_gnunet_dns.sh index c60b94c19..98842e95e 100755 --- a/src/dns/test_gnunet_dns.sh +++ b/src/dns/test_gnunet_dns.sh | |||
@@ -6,6 +6,16 @@ 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 0 | 7 | exit 0 |
8 | fi | 8 | fi |
9 | if [ ! -x `which sudo` ] | ||
10 | then | ||
11 | echo "This test requires sudo. Skipping." | ||
12 | exit 0 | ||
13 | fi | ||
14 | if [ ! -x `which nslookup` ] | ||
15 | then | ||
16 | echo "This test requires nslookup. Skipping." | ||
17 | exit 0 | ||
18 | fi | ||
9 | export PATH=".:$PATH" | 19 | export PATH=".:$PATH" |
10 | gnunet-service-dns -c dns.conf & | 20 | gnunet-service-dns -c dns.conf & |
11 | gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & | 21 | gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & |