summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
blob: a9eb16c5ba2639a90b44bad1e0409a4c8e62c878 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/bash
#Remember to redirect the output into some file!

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