Mercurial > hg > anonet-resdb
diff scripts/nameserver_autogen/dnsmasq_tld_conffile @ 82:db00fd40866c draft
added ip6
author | Antonio Quartulli <ordex@ritirata.org> |
---|---|
date | Thu, 29 Jul 2010 21:23:57 +0200 |
parents | |
children | f091fb99fcf9 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile Thu Jul 29 21:23:57 2010 +0200 @@ -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