summaryrefslogtreecommitdiff
path: root/contrib/peer2anonet
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2012-01-15 23:05:12 +0000
committerd3v11 <d3v11@d3v11.ano>2012-01-15 23:05:12 +0000
commit0f221e9b06d668695c6ec75e6f722398eab68d8f (patch)
tree3d8535a91317520b1a0212ded0ee9aef96d2eb3a /contrib/peer2anonet
parent12cc61913cab58125febd21337b879a92b7f61c9 (diff)
downloadresdb-0f221e9b06d668695c6ec75e6f722398eab68d8f.tar.gz
resdb-0f221e9b06d668695c6ec75e6f722398eab68d8f.zip
added automatic addition of nameservers to resdb
Diffstat (limited to 'contrib/peer2anonet')
-rwxr-xr-xcontrib/peer2anonet/peer2anonet2
1 files changed, 2 insertions, 0 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index f8b9de2..c7a3478 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -438,6 +438,8 @@ CONFIGURE_DNS(){
GIT_IP=`cat conf/gitd_ip` || exit 1
GIT_DOMAIN="git.$NICK.ano"
+ ./scripts/add_dom $NICK.ano $NICK $TINYDNS_DOMAIN/$TINYDNS_IP > /dev/null 2>&1
+
if [ -w /etc/rc.local ]; then
if [[ $(cat /etc/rc.local) != *"ip addr add $TINYDNS_ROOT_IP/32 dev lo &"* ]]; then
echo "ip addr add $TINYDNS_ROOT_IP/32 dev lo &" >> /etc/rc.local