Mercurial > hg > anonet-resdb
view 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 |
line wrap: on
line source
#!/bin/bash #Remember to redirect the output into some file! sh scripts/check_db_safety || exit 1 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 STR="server=/${domain}.${tld}/${ns}" if [ "$(grep $STR /etc/dnsmasq.conf)" = "" ]; then echo $STR fi done; done; done