config.m4: Fix the nameservers following network renumbering.
[dnserr] / utils.m4
index b5ac8ff..9e758dd 100644 (file)
--- a/utils.m4
+++ b/utils.m4
@@ -27,7 +27,12 @@ m4_popdef([_foreach_func])])
 ## Delegate NAME to the NAMESERVERS.
 m4_define([SUBZONE], [m4_dnl
 FOREACH([m4_dnl
+m4_ifelse($][2,,,m4_dnl
 m4_ifelse($1,@,$][1,$][1.$1)           IN      A       $][2
+)m4_dnl
+m4_ifelse($][3,,,m4_dnl
+m4_ifelse($1,@,$][1,$][1.$1)           IN      AAAA    $][3
+)m4_dnl
 ], [NAMESERVERS])
 FOREACH([m4_dnl
 $1                     IN      NS      m4_ifelse($1,@,$][1,$][1.$1)