# HG changeset patch # User pragmo # Date 1288307855 0 # Node ID 750fe07d268ee9d5c19fd3cda3a8788ead97b561 # Parent 827a4f3cb6afa209bae3e71dc0790484dc234940 pragmo.ano NS updated dnsmasq_tld_conffile updated to automatically fetch the NS correct IP diff -r 827a4f3cb6af -r 750fe07d268e db/ip/01/00/11/ns/b30a3fc880c970d4b4f945dd82af4de2.ns.pragmo.ano diff -r 827a4f3cb6af -r 750fe07d268e scripts/nameserver_autogen/dnsmasq_tld_conffile --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile Thu Oct 28 19:52:50 2010 +0000 +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile Thu Oct 28 23:17:35 2010 +0000 @@ -15,11 +15,11 @@ for b in $($LS db/ip/${a}); do for c in $($LS db/ip/${a}/${b}); do if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then - for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do + for ns in $($LS db/ip/${a}/${b}/${c}/ns/); do A1=$(scripts/hex2dec ${a}) B1=$(scripts/hex2dec ${b}) C1=$(scripts/hex2dec ${c}) - STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/${ns}" + STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/$(scripts/ns2ip -f ${ns})" echo $STR done fi @@ -31,8 +31,8 @@ for tld in $($LS db/dom/); do for domain in $($LS db/dom/${tld}/); do - for ns in $(cat db/dom/${tld}/${domain}/ns/*); do - STR="server=/${domain}.${tld}/${ns}" + for ns in $($LS db/dom/${tld}/${domain}/ns/); do + STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})" echo $STR done; done;