projects
/
oweals
/
gnunet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
-enable peer API to return pointer to interned peer hash code
[oweals/gnunet.git]
/
src
/
dns
/
test_gnunet_dns.sh
1
#!/bin/bash
2
3
ME=`whoami`
4
if [ "$ME" != "root" ]
5
then
6
echo "This test only works if run as root. Skipping."
7
exit 0
8
fi
9
export PATH=".:$PATH"
10
gnunet-service-dns -c dns.conf &
11
gnunet-dns-redirector -c dns.conf -4 127.0.0.1 &
12
sleep 1
13
LO=`nslookup gnunet.org | grep Address | tail -n1`
14
if [ "$LO" != "Address: 127.0.0.1" ]
15
then
16
echo "Fail: $LO"
17
fi
18
kill `jobs -p`