changeset 85:f091fb99fcf9 draft

scripts/nameserver_autogen/dnsmasq_tld_conffile modified
author Antonio Quartulli <ordex@ritirata.org>
date Tue, 03 Aug 2010 17:28:17 +0200
parents 947b60820f0c
children 2cb22cb51fba ff0446d73071
files scripts/nameserver_autogen/dnsmasq_tld_conffile
diffstat 1 files changed, 4 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile	Mon Aug 02 17:07:14 2010 +0200
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile	Tue Aug 03 17:28:17 2010 +0200
@@ -4,7 +4,10 @@
 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 
-			echo server=/${domain}.${tld}/${ns}; 
+			STR="server=/${domain}.${tld}/${ns}"
+			if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then
+				echo $STR
+			fi
 		done; 
 	done; 
 done