changeset 604:bc0c2cfc9921 draft

d3v1150m471c.ano has no ns directory, dnsmasq zonegen now handles it
author Nick <nick@somerandomnick.ano>
date Tue, 13 Sep 2011 03:53:18 +0000
parents a4e5033ce156
children 556be8a17bdd
files scripts/nameserver_autogen/dnsmasq_tld_conffile
diffstat 1 files changed, 6 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile	Fri Sep 09 01:42:23 2011 +0000
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile	Tue Sep 13 03:53:18 2011 +0000
@@ -31,9 +31,11 @@
 
 for tld in $($LS db/dom/); do 
 	for domain in $($LS db/dom/${tld}/); do 
-		for ns in $($LS db/dom/${tld}/${domain}/ns/); do 
-			STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})"
-			echo $STR
-		done; 
+		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; 
+		fi
 	done; 
 done