summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
diff options
context:
space:
mode:
authorpikaj00 <pikaj00@gmail.com>2011-11-15 13:31:30 -0500
committerpikaj00 <pikaj00@gmail.com>2011-11-15 13:31:30 -0500
commit354d91f1f54be0c3f595e29ad2a24dad5cfba839 (patch)
tree39717593fab78f1d5791e298ee8d59c3c6061218 /scripts/nameserver_autogen/dnsmasq_tld_conffile
parent36e2ee5ae9bf25826ec10e608d533effcb7562af (diff)
parentc8c4d269ddb5cd31f6bbb20291da3631d5b5287e (diff)
downloadresdb-354d91f1f54be0c3f595e29ad2a24dad5cfba839.tar.gz
resdb-354d91f1f54be0c3f595e29ad2a24dad5cfba839.zip
Merge branch 'master' of git://git1.srn.ano
Diffstat (limited to 'scripts/nameserver_autogen/dnsmasq_tld_conffile')
-rwxr-xr-xscripts/nameserver_autogen/dnsmasq_tld_conffile12
1 files changed, 7 insertions, 5 deletions
diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile
index f155601..97aa10b 100755
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile
@@ -31,11 +31,13 @@ echo
for tld in $($LS db/dom/); do
for domain in $($LS db/dom/${tld}/); do
- if [ -d $($LS db/dom/${tld}/{$domain}/ns/ ]; then
- for ns in $($LS db/dom/${tld}/${domain}/ns/); do
- STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})"
- echo $STR
- done;
+ if [ -d $($LS -d db/dom/${tld}/${domain}/) ]; then
+ if [ -d $($LS -d db/dom/${tld}/${domain}/ns/) ]; then
+ for ns in $($LS db/dom/${tld}/${domain}/ns/); do
+ STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})"
+ echo $STR
+ done;
+ fi
fi
done;
done