From 049c097711867658f11fc98a8e4ffac84f29070f Mon Sep 17 00:00:00 2001 From: Antonio Quartulli Date: Tue, 3 Aug 2010 17:28:17 +0200 Subject: scripts/nameserver_autogen/dnsmasq_tld_conffile modified --- scripts/nameserver_autogen/dnsmasq_tld_conffile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile index a694e86..a9eb16c 100644 --- a/scripts/nameserver_autogen/dnsmasq_tld_conffile +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile @@ -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 -- cgit v1.2.3