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_conffile13
1 files changed, 13 insertions, 0 deletions
diff --git a/scripts/nameserver_autogen/dnsmasq_tld_conffile b/scripts/nameserver_autogen/dnsmasq_tld_conffile
new file mode 100644
index 0000000..a9eb16c
--- /dev/null
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile
@@ -0,0 +1,13 @@
+#!/bin/bash
+#Remember to redirect the output into some file!
+
+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
+ STR="server=/${domain}.${tld}/${ns}"
+ if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then
+ echo $STR
+ fi
+ done;
+ done;
+done