annotate scripts/nameserver_autogen/dnsmasq_tld_conffile @ 91:17e4bef39c08 draft

Modification of scripts/nameserver_autogen/dnsmasq_tld_conffile
author pragmo <pragmo@pragmo.ano>
date Thu, 05 Aug 2010 02:45:46 +0200
parents f091fb99fcf9
children 9e6718a2d6c6
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
91
17e4bef39c08 Modification of scripts/nameserver_autogen/dnsmasq_tld_conffile
pragmo <pragmo@pragmo.ano>
parents: 85
diff changeset
4 sh scripts/check_db_safety || exit 1
17e4bef39c08 Modification of scripts/nameserver_autogen/dnsmasq_tld_conffile
pragmo <pragmo@pragmo.ano>
parents: 85
diff changeset
5
82
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
6 for tld in $(ls db/dom/); do
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
7 for domain in $(ls db/dom/${tld}/); do
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
8 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
9 STR="server=/${domain}.${tld}/${ns}"
f091fb99fcf9 scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents: 82
diff changeset
10 if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then
f091fb99fcf9 scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents: 82
diff changeset
11 echo $STR
f091fb99fcf9 scripts/nameserver_autogen/dnsmasq_tld_conffile modified
Antonio Quartulli <ordex@ritirata.org>
parents: 82
diff changeset
12 fi
82
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
13 done;
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
14 done;
db00fd40866c added ip6
Antonio Quartulli <ordex@ritirata.org>
parents:
diff changeset
15 done