summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
diff options
context:
space:
mode:
authorAntonio Quartulli <ordex@ritirata.org>2010-07-29 21:23:57 +0200
committerAntonio Quartulli <ordex@ritirata.org>2010-07-29 21:23:57 +0200
commit2bbb07f86d24d48fba4d87bbcc3e07d0f156f222 (patch)
treecacbfb84bd5d9e52dcb03e6180b60367dffce079 /scripts/nameserver_autogen/dnsmasq_tld_conffile
parent1b44dc047937cd577785eb1fb98f6c860a2dc172 (diff)
downloadresdb-2bbb07f86d24d48fba4d87bbcc3e07d0f156f222.tar.gz
resdb-2bbb07f86d24d48fba4d87bbcc3e07d0f156f222.zip
added ip6
Diffstat (limited to 'scripts/nameserver_autogen/dnsmasq_tld_conffile')
-rw-r--r--scripts/nameserver_autogen/dnsmasq_tld_conffile10
1 files changed, 10 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..a694e86
--- /dev/null
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile
@@ -0,0 +1,10 @@
+#!/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
+ echo server=/${domain}.${tld}/${ns};
+ done;
+ done;
+done