comparison 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
comparison
equal deleted inserted replaced
84:947b60820f0c 85:f091fb99fcf9
2 #Remember to redirect the output into some file! 2 #Remember to redirect the output into some file!
3 3
4 for tld in $(ls db/dom/); do 4 for tld in $(ls db/dom/); do
5 for domain in $(ls db/dom/${tld}/); do 5 for domain in $(ls db/dom/${tld}/); do
6 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do 6 for ns in $(cat db/dom/${tld}/${domain}/ns/*); do
7 echo server=/${domain}.${tld}/${ns}; 7 STR="server=/${domain}.${tld}/${ns}"
8 if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then
9 echo $STR
10 fi
8 done; 11 done;
9 done; 12 done;
10 done 13 done