summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
blob: e7d3fb6cc3dac712a403d0761dd25a3c4d10fa2c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/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