Added debug to pdns

This commit is contained in:
root 2023-06-15 19:25:09 +00:00
parent 815bfeef9e
commit 9910cf40fd

View File

@ -1,4 +1,4 @@
#!/bin/bash #!/bin/bash -x
# #
# PowerDNS DNS Service # PowerDNS DNS Service
@ -69,7 +69,7 @@ EOF
chmod 600 /federated/apps/pdns/.env chmod 600 /federated/apps/pdns/.env
cat > /federated/apps/pdns/data/root/createrecords.sh <<EOF cat > /federated/apps/pdns/data/root/createrecords.sh <<EOF
#!/bin/bash #!/bin/bash -x
# Create the default domain DNS zone # Create the default domain DNS zone
curl -X POST --data '{"name":"$DOMAIN.", "kind": "Master", "masters": []}' -v -H 'X-API-Key: $PDNS_APIKEY' http://127.0.0.1:8081/api/v1/servers/localhost/zones curl -X POST --data '{"name":"$DOMAIN.", "kind": "Master", "masters": []}' -v -H 'X-API-Key: $PDNS_APIKEY' http://127.0.0.1:8081/api/v1/servers/localhost/zones