summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/nameserver_autogen/dnsmasq_tld_conffile')
-rw-r--r--scripts/nameserver_autogen/dnsmasq_tld_conffile5
1 files changed, 4 insertions, 1 deletions
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