changeset 249:6541a8ac29fd draft

Merge branch 'master' of git://1.0.49.10
author pragmo <pragmo@pragmo.ano>
date Thu, 04 Nov 2010 18:52:44 +0000
parents a3cccef9379e (diff) 389a1005eb51 (current diff)
children 81051ab9bec6 41c04636e36c
files
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/nameserver_autogen/dnsmasq_tld_conffile	Thu Nov 04 12:34:08 2010 -0500
+++ b/scripts/nameserver_autogen/dnsmasq_tld_conffile	Thu Nov 04 18:52:44 2010 +0000
@@ -15,11 +15,11 @@
 	for b in $($LS db/ip/${a}); do
 		for c in $($LS db/ip/${a}/${b}); do
 			if [ -d db/ip/${a}/${b}/${c}/ns/ ]; then
-			 	for ns in $(cat db/ip/${a}/${b}/${c}/ns/*); do
+			 	for ns in $($LS db/ip/${a}/${b}/${c}/ns/); do
 					A1=$(scripts/hex2dec ${a})
 					B1=$(scripts/hex2dec ${b})
 					C1=$(scripts/hex2dec ${c})
-					STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/${ns}"
+					STR="server=/${C1}.${B1}.${A1}.in-addr.arpa/$(scripts/ns2ip -f ${ns})"
 					echo $STR
 				done
 			fi
@@ -31,8 +31,8 @@
 
 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}"
+		for ns in $($LS db/dom/${tld}/${domain}/ns/); do 
+			STR="server=/${domain}.${tld}/$(scripts/ns2ip -f ${ns})"
 			echo $STR
 		done; 
 	done;