summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/dns/dns.conf.in2
-rwxr-xr-xsrc/dns/test_gnunet_dns.sh10
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 42DNS_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
8fi 8fi
9if [ ! -x `which sudo` ]
10then
11 echo "This test requires sudo. Skipping."
12 exit 0
13fi
14if [ ! -x `which nslookup` ]
15then
16 echo "This test requires nslookup. Skipping."
17 exit 0
18fi
9export PATH=".:$PATH" 19export PATH=".:$PATH"
10gnunet-service-dns -c dns.conf & 20gnunet-service-dns -c dns.conf &
11gnunet-dns-redirector -c dns.conf -4 127.0.0.1 & 21gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &