Skip to content

Instantly share code, notes, and snippets.

@jokester
Last active May 23, 2016 13:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jokester/e1152fd90ace2f71d767af1d96d802dc to your computer and use it in GitHub Desktop.
Save jokester/e1152fd90ace2f71d767af1d96d802dc to your computer and use it in GitHub Desktop.
Digitalocean's DNS API returns lowercased challenge for DNS TXT record

What returned by DO's HTTP API:

$ curl "https://api.digitalocean.com/v2/domains/jokester.io/records" -H "Content-Type: application/json" -H "Authorization: Bearer XXXXXX"

{
  "domain_records":[
    {"id":14247848,"type":"TXT","name":"_acme-challenge","data":"7mh2ao25wnj7v9fizdj8vrwubpzzsfa0lm8qiu4dr4e","priority":null,"port":null,"weight":null},
    ...
  ]
}

What returned by DNS server:

$ dig _acme-challenge.jokester.io txt @ns1.digitalocean.com

;; ANSWER SECTION:
_acme-challenge.jokester.io. 1800 IN    TXT     "7mH2ao25wnJ7V9FiZDJ8VRwuBpZzSFa0lM8Qiu4Dr4E"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment