Mercurial > hg > anonet-resdb
comparison scripts/nameserver_autogen/tinydns_tld_datafile @ 12:41b330b11a33 draft
coded a tinydns datafile generator
author | Nick <nick@somerandomnick.ano> |
---|---|
date | Mon, 19 Apr 2010 06:10:07 +0000 |
parents | |
children | 059b5f3d7808 |
comparison
equal
deleted
inserted
replaced
11:2e7c94478881 | 12:41b330b11a33 |
---|---|
1 #!/bin/sh | |
2 if ! ./scripts/check_db_safety; then | |
3 exit 1 | |
4 fi | |
5 tldsrvrname="$(./scripts/conf_var tinydns__tldsrvrname uz5fvb7zdqyuz4q8ysjdfuf04kzd2lrt0l6fp4uyguxdg5tfut06ck.anons.somerandomnick.ano)" | |
6 tldsrvrip="$(./scripts/conf_var tinydns__tldsrvrip 1.0.27.37)" | |
7 for tld in db/dom/* ; do | |
8 tldname="$(basename $tld)" | |
9 echo "+$tldsrvrname:$tldsrvrip:3600" | |
10 echo ".$tldname::$tldsrvrname" | |
11 for zone in $tld/* ; do | |
12 for ns in $zone/ns/* ; do | |
13 domain="$(basename $zone).$(basename $tld)" | |
14 nsip="$(cat $ns)" | |
15 nsname="$(basename $ns)" | |
16 echo "&$domain:$nsip:$nsname" | |
17 done | |
18 done | |
19 done |