Mercurial > hg > anonet-resdb
comparison scripts/nameserver_autogen/dnsmasq_tld_conffile @ 238:750fe07d268e draft
pragmo.ano NS updated
dnsmasq_tld_conffile updated to automatically fetch the NS correct IP
author | pragmo <pragmo@pragmo.ano> |
---|---|
date | Thu, 28 Oct 2010 23:17:35 +0000 |
parents | 70a066da663d |
children | bc0c2cfc9921 |
comparison
equal
deleted
inserted
replaced
237:827a4f3cb6af | 238:750fe07d268e |
---|---|
13 | 13 |
14 for a in $($LS db/ip/); do | 14 for a in $($LS db/ip/); do |
15 for b in $($LS db/ip/${a}); do | 15 for b in $($LS db/ip/${a}); do |
16 for c in $($LS db/ip/${a}/${b}); do | 16 for c in $($LS db/ip/${a}/${b}); do |
17 if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then | 17 if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then |
18 for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do | 18 for ns in $($LS db/ip/${a}/${b}/${c}/ns/); do |
19 A1=$(scripts/hex2dec ${a}) | 19 A1=$(scripts/hex2dec ${a}) |
20 B1=$(scripts/hex2dec ${b}) | 20 B1=$(scripts/hex2dec ${b}) |
21 C1=$(scripts/hex2dec ${c}) | 21 C1=$(scripts/hex2dec ${c}) |
22 STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/${ns}" | 22 STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/$(scripts/ns2ip -f ${ns})" |
23 echo $STR | 23 echo $STR |
24 done | 24 done |
25 fi | 25 fi |
26 done | 26 done |
27 done | 27 done |
29 | 29 |
30 echo | 30 echo |
31 | 31 |
32 for tld in $($LS db/dom/); do | 32 for tld in $($LS db/dom/); do |
33 for domain in $($LS db/dom/${tld}/); do | 33 for domain in $($LS db/dom/${tld}/); do |
34 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do | 34 for ns in $($LS db/dom/${tld}/${domain}/ns/); do |
35 STR="server=/${domain}.${tld}/${ns}" | 35 STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})" |
36 echo $STR | 36 echo $STR |
37 done; | 37 done; |
38 done; | 38 done; |
39 done | 39 done |