How to add wildcard CNAME with api?

December 19, 2015 457 views

Using the following, I'm trying to add a wildcard CNAME:

curl -X POST "" -H 'Content-Type: application/json' -H "Authorization: Bearer $TOKEN" -d '{"type":"CNAME","name":"*","data":"'$DOMAIN'."}'

I get back:


No record is inserted. I can add other records no problem but it doesn't seem to like the wildcard character.

1 Answer


My only thought is that the $DOMAIN value is not getting parsed in whatever you are using to generate this. I'm currently unable to replicate using the same setup you have and the record is generate each time properly.

I would try removing any values that are generated and try it with all actual values.

Have another answer? Share your knowledge.