Mercurial > hg > anonet-resdb
annotate scripts/nameserver_autogen/dnsmasq_tld_conffile @ 85:f091fb99fcf9 draft
scripts/nameserver_autogen/dnsmasq_tld_conffile modified
author | Antonio Quartulli <ordex@ritirata.org> |
---|---|
date | Tue, 03 Aug 2010 17:28:17 +0200 |
parents | db00fd40866c |
children | 17e4bef39c08 |
rev | line source |
---|---|
82 | 1 #!/bin/bash |
2 #Remember to redirect the output into some file! | |
3 | |
4 for tld in $(ls db/dom/); do | |
5 for domain in $(ls db/dom/${tld}/); do | |
6 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do | |
85
f091fb99fcf9
scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents:
82
diff
changeset
|
7 STR="server=/${domain}.${tld}/${ns}" |
f091fb99fcf9
scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents:
82
diff
changeset
|
8 if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then |
f091fb99fcf9
scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents:
82
diff
changeset
|
9 echo $STR |
f091fb99fcf9
scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents:
82
diff
changeset
|
10 fi |
82 | 11 done; |
12 done; | |
13 done |