Hi everyone,
I am trying to bulk create records for new domains. I spent about an hour to debug the API call given below which always gave me an HTTP error 500 until I realized that the request works if I remove the AAAA record. Setting the corresonding AAAA record using the WebUI doesn’t work as well. As far as I understand the IPv6 adress is perfectly valid. Also the expanded versions 0:0:0:0:0:ffff:7f00:1 and 0000:0000:0000:0000:0000:FFFF:7F00:0001 don’t work and give a HTTP error 500 using the WebUI.
Hope someone can help me with that!
curl -X PUT https://desec.io/api/v1/domains/<domain.de>/rrsets/ \
--header "Authorization: Token mySecretToken" \
--header "Content-Type: application/json" -d @- << EOF
[
{"domain": "<domain.de>","subname": "www", "type": "A", "ttl": 3600, "records": ["84.19.1.228"]},
{"domain": "<domain.de>","subname": "www", "type": "AAAA", "ttl": 3600, "records": ["::ffff:7f00:1"]},
{"domain": "<domain.de>","subname": "mail", "type": "A", "ttl": 3600, "records": ["84.19.1.228"]},
{"domain": "<domain.de>","subname": "", "type": "MX", "ttl": 3600, "records": ["10 mail.9jj.de."]}
]
EOF