Added PDNS NS records
This commit is contained in:
parent
020085b4a4
commit
a001a0b75e
@ -91,6 +91,8 @@ done
|
||||
# Create CNAME record for domain to www
|
||||
curl -X PATCH --data '{"rrsets": [ {"name": "*.$DOMAIN.", "type": "CNAME", "ttl": 86400, "changetype": "REPLACE", "records": [ {"content": "www.$DOMAIN.", "disabled": false } ] } ] }' -H 'X-API-Key: $PDNS_APIKEY' http://127.0.0.1:8081/api/v1/servers/localhost/zones/$DOMAIN.
|
||||
|
||||
pdnsutil add-record $DOMAIN @ NS ns1.$DOMAIN
|
||||
pdnsutil add-record $DOMAIN @ NS ns2.$DOMAIN
|
||||
pdnsutil add-record $DOMAIN @ A 86400 $EXTERNALIP
|
||||
EOF
|
||||
chmod +x /federated/apps/pdns/data/root/createrecords.sh
|
||||
|
Loading…
x
Reference in New Issue
Block a user