annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
82
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
1 #!/bin/bash
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
2 #Remember to redirect the output into some file!
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
3
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
4 for tld in $(ls db/dom/); do
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
5 for domain in $(ls db/dom/${tld}/); do
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
6 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
7 echo server=/${domain}.${tld}/${ns};
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
8 done;
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
9 done;
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
10 done