summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
diff options
context:
space:
mode:
authorpragmo <pragmo@pragmo.ano>2010-10-28 23:17:35 +0000
committerpragmo <pragmo@pragmo.ano>2010-10-28 23:17:35 +0000
commitd274b0700d125cc9960014eeb80aeee5679a2f0a (patch)
tree3de807227220700e27419b1787585625a05e5524 /scripts/nameserver_autogen/dnsmasq_tld_conffile
parent69797c0c31d8748f5b2f81bc84eee4e0ab42fc08 (diff)
downloadresdb-d274b0700d125cc9960014eeb80aeee5679a2f0a.tar.gz
resdb-d274b0700d125cc9960014eeb80aeee5679a2f0a.zip
pragmo.ano NS updated
dnsmasq_tld_conffile updated to automatically fetch the NS correct IP
Diffstat (limited to 'scripts/nameserver_autogen/dnsmasq_tld_conffile')
-rwxr-xr-xscripts/nameserver_autogen/dnsmasq_tld_conffile8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile
index 83ea348..20eefd1 100755
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile
@@ -15,11 +15,11 @@ for a in $($LS db/ip/); do
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 @@ echo
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;