]> granicus.if.org Git - pdns/commitdiff
drop forward-zone from recursor regression, now uses a fake root hints file
authorPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 11 Jan 2013 08:56:59 +0000 (08:56 +0000)
committerPeter van Dijk <peter.van.dijk@netherlabs.nl>
Fri, 11 Jan 2013 08:56:59 +0000 (08:56 +0000)
git-svn-id: svn://svn.powerdns.com/pdns/trunk/pdns@3038 d19b8d6e-7fed-0310-83ef-9ca221ded41b

regression-tests.recursor/config.sh

index 54c4ed8aeb5cfb103e703d1bdd77e23d318ceef9..4f31047c86c4b92d98740db238a5bdd948e0905d 100755 (executable)
@@ -34,8 +34,24 @@ $RECRUN
 EOF
 chmod +x recursor-service/run
 
+cat > recursor-service/hintfile << EOF
+.                        3600 IN NS  ns.root.
+ns.root.                 3600 IN A   $PREFIX.8
+EOF
+
 SOA="ns.example.net. hostmaster.example.net. 1 3600 1800 1209600 300"
 
+### fake root zone
+mkdir $PREFIX.8
+cat > $PREFIX.8/ROOT.zone <<EOF
+.                        3600 IN SOA $SOA
+.                        3600 IN NS  ns.root.
+ns.root.                 3600 IN A   $PREFIX.8
+net.                     3600 IN NS  ns.example.net.
+net.                     3600 IN NS  ns2.example.net.
+ns.example.net.          3600 IN A   $PREFIX.10
+ns2.example.net.         3600 IN A   $PREFIX.11
+EOF
 
 ### plain example.net zone
 mkdir $PREFIX.10
@@ -169,8 +185,13 @@ options {
 EOF
     for zone in $(ls $dir | grep '\.zone$' | sed 's/\.zone$//') 
     do
+        realzone=$zone
+        if [ $realzone = ROOT ]
+        then
+            realzone='.'
+        fi
         cat >> $dir/named.conf <<EOF
-zone "$zone"{
+zone "$realzone"{
     type master;
     file "./$zone.zone";
 };