summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authord3v11 <d3v11@d3v11.ano>2011-11-26 19:04:16 +0000
committerd3v11 <d3v11@d3v11.ano>2011-11-26 19:04:16 +0000
commit24cc26d124dd44e9c3c1c842c5d14bbd04307f20 (patch)
tree642a77b3dae4371b9a70348b33569c0bec3d6ace
parentceff4700285f7963b56ba9d87057d3befe175313 (diff)
downloadresdb-24cc26d124dd44e9c3c1c842c5d14bbd04307f20.tar.gz
resdb-24cc26d124dd44e9c3c1c842c5d14bbd04307f20.zip
updated peer2anonet
-rwxr-xr-xcontrib/peer2anonet/peer2anonet17
1 files changed, 13 insertions, 4 deletions
diff --git a/contrib/peer2anonet/peer2anonet b/contrib/peer2anonet/peer2anonet
index 0c9665f..dd8a76a 100755
--- a/contrib/peer2anonet/peer2anonet
+++ b/contrib/peer2anonet/peer2anonet
@@ -369,10 +369,19 @@ CONFIGURE_DNS(){
tinydns-conf Gtinydns Gdnslog /services/tinydns $TINYDNS_IP
( cd / ; ln -s /services/tinydns /service/tinydns )
- ( cd /service/tinydns/root ; ./add-ns $TINYDNS_DOMAIN $TINYDNS_IP )
- ( cd /service/tinydns/root ; ./add-alias $GIT_DOMAIN $GIT_IP )
- ( cd /service/tinydns/root ; ./add-alias $TINYDNS_ANO_IP $TINYDNS_ROOT_IP )
- ( cd /service/tinydns/root ; ./add-alias $TINYDNS_ANO_DOMAIN $TINYDNS_ANO_IP )
+ echo ".$NICK.ano:$TINYDNS_IP:a:259200" > /service/tinydns/root/data
+ echo "=www.$NICK.ano:$GIT_IP:86400" >> /service/tinydns/root/data
+ echo "+git.$NICK.ano:$GIT_IP:86400" >> /service/tinydns/root/data
+ echo "+$NICK.ano:$GIT_IP:86400" >> /service/tinydns/root/data
+ echo "+a.anons.$NICK.ano:$TINYDNS_ANO_IP:3600" >> /service/tinydns/root/data
+ echo ".1.in-addr.arpa::a.anons.$NICK.ano" >> /service/tinydns/root/data
+ echo ".2.in-addr.arpa::a.anons.$NICK.ano" >> /service/tinydns/root/data
+ echo ".ano::a.anons.$NICK.ano" >> /service/tinydns/root/data
+ echo ".ntwrk::a.anons.$NICK.ano" >> /service/tinydns/root/data
+ #( cd /service/tinydns/root ; ./add-ns $TINYDNS_DOMAIN $TINYDNS_IP )
+ #( cd /service/tinydns/root ; ./add-alias $GIT_DOMAIN $GIT_IP )
+ #( cd /service/tinydns/root ; ./add-alias $TINYDNS_ANO_IP $TINYDNS_ROOT_IP )
+ #( cd /service/tinydns/root ; ./add-alias $TINYDNS_ANO_DOMAIN $TINYDNS_ANO_IP )
( cd /service/tinydns/root ; make )
tinydns-conf Gtinydns Gdnslog /services/tinydns-root $TINYDNS_ROOT_IP