aboutsummaryrefslogtreecommitdiff
path: root/src/cli/gns
diff options
context:
space:
mode:
Diffstat (limited to 'src/cli/gns')
-rw-r--r--src/cli/gns/test_dns2gns.conf5
-rwxr-xr-xsrc/cli/gns/test_dns2gns.sh6
2 files changed, 7 insertions, 4 deletions
diff --git a/src/cli/gns/test_dns2gns.conf b/src/cli/gns/test_dns2gns.conf
index f484d4114..2f6bdc797 100644
--- a/src/cli/gns/test_dns2gns.conf
+++ b/src/cli/gns/test_dns2gns.conf
@@ -18,7 +18,7 @@ MAX_PARALLEL_BACKGROUND_QUERIES = 10
18DEFAULT_LOOKUP_TIMEOUT = 15 s 18DEFAULT_LOOKUP_TIMEOUT = 15 s
19RECORD_PUT_INTERVAL = 1 h 19RECORD_PUT_INTERVAL = 1 h
20ZONE_PUBLISH_TIME_WINDOW = 1 h 20ZONE_PUBLISH_TIME_WINDOW = 1 h
21DNS_ROOT=PD67SGHF3E0447TU9HADIVU9OM7V4QHTOG0EBU69TFRI2LG63DR0 21.gnunet.org =
22 22
23[namestore] 23[namestore]
24IMMEDIATE_START = YES 24IMMEDIATE_START = YES
@@ -65,4 +65,5 @@ IMMEDIATE_START = YES
65RUN_PER_USER = YES 65RUN_PER_USER = YES
66BIND_TO = 127.0.0.1 66BIND_TO = 127.0.0.1
67BIND_TO6 = ::1 67BIND_TO6 = ::1
68OPTIONS = -d 1.1.1.1 -p 12000 68PORT = 12000
69OPTIONS = -d 1.1.1.1
diff --git a/src/cli/gns/test_dns2gns.sh b/src/cli/gns/test_dns2gns.sh
index 295bcc766..a6024ca3c 100755
--- a/src/cli/gns/test_dns2gns.sh
+++ b/src/cli/gns/test_dns2gns.sh
@@ -20,7 +20,7 @@ MY_EGO="localego"
20TEST_IP="127.0.0.1" 20TEST_IP="127.0.0.1"
21TEST_IPV6="dead::beef" 21TEST_IPV6="dead::beef"
22LABEL="fnord" 22LABEL="fnord"
23TEST_DOMAIN="gnunet.org" 23TEST_DOMAIN="taler.net"
24 24
25gnunet-arm -s -c test_dns2gns.conf 25gnunet-arm -s -c test_dns2gns.conf
26PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf` 26PKEY=`gnunet-identity -V -C $MY_EGO -c test_dns2gns.conf`
@@ -34,14 +34,16 @@ if nslookup -port=12000 $LABEL.$PKEY localhost && nslookup -port=12000 $LABEL.$M
34 echo "PASS: GNS records can be resolved using dns2gns bridge" 34 echo "PASS: GNS records can be resolved using dns2gns bridge"
35else 35else
36 echo "FAIL: GNS records can't be resolved using dns2gns bridge" 36 echo "FAIL: GNS records can't be resolved using dns2gns bridge"
37 gnunet-arm -e -c test_dns2gns.conf
37 rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` 38 rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME`
38 exit 1 39 exit 1
39fi 40fi
40 41
41if nslookup -port=12000 gnunet.org localhost; then 42if nslookup -port=12000 $TEST_DOMAIN localhost; then
42 echo "PASS: DNS records can be resolved using dns2gns bridge" 43 echo "PASS: DNS records can be resolved using dns2gns bridge"
43else 44else
44 echo "FAIL: DNS records can't be resolved using dns2gns bridge" 45 echo "FAIL: DNS records can't be resolved using dns2gns bridge"
46 gnunet-arm -e -c test_dns2gns.conf
45 rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME` 47 rm -rf `gnunet-config -c test_dns2gns.conf -f -s paths -o GNUNET_TEST_HOME`
46 exit 1 48 exit 1
47fi 49fi