diff options
| author | Nick <nick@somerandomnick.ano> | 2011-09-13 03:53:18 +0000 | 
|---|---|---|
| committer | Nick <nick@somerandomnick.ano> | 2011-09-13 03:53:18 +0000 | 
| commit | 11884bac8969f95fd39bf34ae1c758377ab42e5e (patch) | |
| tree | 2a15a3e938897bd3f1e856bc2c3a54aead6ded52 /scripts/nameserver_autogen/dnsmasq_tld_conffile | |
| parent | ad5314492d792cc37949c0692bcf42bb08c8b38f (diff) | |
| download | resdb-11884bac8969f95fd39bf34ae1c758377ab42e5e.tar.gz resdb-11884bac8969f95fd39bf34ae1c758377ab42e5e.zip | |
d3v1150m471c.ano has no ns directory, dnsmasq zonegen now handles it
Diffstat (limited to 'scripts/nameserver_autogen/dnsmasq_tld_conffile')
| -rwxr-xr-x | scripts/nameserver_autogen/dnsmasq_tld_conffile | 10 | 
1 files changed, 6 insertions, 4 deletions
| diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile index 20eefd1..f155601 100755 --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile @@ -31,9 +31,11 @@ echo  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 | 
