view scripts/nameserver_autogen/dnsmasq_tld_conffile @ 82:db00fd40866c draft

added ip6
author Antonio Quartulli <ordex@ritirata.org>
date Thu, 29 Jul 2010 21:23:57 +0200
parents
children f091fb99fcf9
line wrap: on
line source

#!/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