summaryrefslogtreecommitdiff
path: root/scripts/nameserver_autogen/dnsmasq_tld_conffile
blob: a694e866b3a7453c3500319a40b35d9a31089d71 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
#!/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 
			echo server=/${domain}.${tld}/${ns}; 
		done; 
	done; 
done