unbound-host
validns
default-jre
+ jq
- cd ..
- wget http://www.verisignlabs.com/dnssec-tools/packages/jdnssec-tools-0.12.tar.gz
- sudo tar xfz jdnssec-tools-0.12.tar.gz --strip-components=1 -C /
--- /dev/null
+#!/bin/sh
+curl -s -H 'X-API-Key: secret' 127.0.0.1:8082/api/v1/servers/localhost/zones | jq '.[] | select(.kind=="Forwarded")'
--- /dev/null
+Check if the comments in the forward-zones-file are indeed ignored
--- /dev/null
+{
+ "id": "forward-zones-test2.non-existing.powerdns.com.",
+ "url": "/api/v1/servers/localhost/zones/forward-zones-test2.non-existing.powerdns.com.",
+ "name": "forward-zones-test2.non-existing.powerdns.com.",
+ "kind": "Forwarded",
+ "servers": [
+ "8.8.8.8:53"
+ ],
+ "recursion_desired": false
+}
+{
+ "id": "forward-zones-test.non-existing.powerdns.com.",
+ "url": "/api/v1/servers/localhost/zones/forward-zones-test.non-existing.powerdns.com.",
+ "name": "forward-zones-test.non-existing.powerdns.com.",
+ "kind": "Forwarded",
+ "servers": [
+ "8.8.8.8:53"
+ ],
+ "recursion_desired": false
+}
ln -s ../run-auth $dir/run
done
+cat > recursor-service/forward-zones-file << EOF
+# Some comment that should be ignored
+forward-zones-test.non-existing.powerdns.com=8.8.8.8
+forward-zones-test2.non-existing.powerdns.com=8.8.8.8# This comment should be ignored as well
+EOF
+
cat > recursor-service/recursor.conf <<EOF
+webserver=yes
+api-key=secret
+api-readonly=yes
+forward-zones-file=$(pwd)/recursor-service/forward-zones-file
+
socket-dir=$(pwd)/recursor-serviceS
auth-zones=global.box.answer-cname-in-local.example.net=$(pwd)/recursor-service/global.box.answer-cname-in-local.example.net.zone,auth-zone.example.net=$(pwd)/recursor-service/auth-zone.example.net.zone,another-auth-zone.example.net=$(pwd)/recursor-service/another-auth-zone.example.net.zone