[GH-ISSUE #52] Bad Subdomain #16

Closed
opened 2026-03-13 15:22:52 +03:00 by kerem · 4 comments
Owner

Originally created by @lukepolo on GitHub (Mar 14, 2018).
Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/52

Im getting a bad subdomain currently , Ill take down this instance once i get it resolved but :

## Acme-DNS Register
curl -X "POST" "http://159.65.179.47/register"
## Acme-DNS Update
curl -X "POST" "http://159.65.179.47/update" \
     -H 'Content-Type: application/json; charset=utf-8' \
     -H 'X-Api-Key: n8o2nd7E4JtqWlTEbyEZAjs5mZr1wc8Ehju2SNhG' \
     -H 'X-Api-User: 105f0386-6d4b-41ca-9c17-d5a0481e7e36' \
     -d $'{
  "txt": "test",
  "subdomain": "cc3ddadd-0c05-4e5e-8d3f-2d2b72e9c083"
}'

Response :

{ error : 'bad_subdomain'}

Is there something im doing wrong?

Originally created by @lukepolo on GitHub (Mar 14, 2018). Original GitHub issue: https://github.com/acme-dns/acme-dns/issues/52 Im getting a bad subdomain currently , Ill take down this instance once i get it resolved but : ``` ## Acme-DNS Register curl -X "POST" "http://159.65.179.47/register" ``` ``` ## Acme-DNS Update curl -X "POST" "http://159.65.179.47/update" \ -H 'Content-Type: application/json; charset=utf-8' \ -H 'X-Api-Key: n8o2nd7E4JtqWlTEbyEZAjs5mZr1wc8Ehju2SNhG' \ -H 'X-Api-User: 105f0386-6d4b-41ca-9c17-d5a0481e7e36' \ -d $'{ "txt": "test", "subdomain": "cc3ddadd-0c05-4e5e-8d3f-2d2b72e9c083" }' ``` Response : ```{ error : 'bad_subdomain'}``` Is there something im doing wrong?
kerem closed this issue 2026-03-13 15:22:57 +03:00
Author
Owner

@cpu commented on GitHub (Mar 14, 2018):

@lukepolo What commit of acme-dns are you running? I think you hit the same thing I did that I fixed in https://github.com/joohoi/acme-dns/pull/42

Sending a "txt" with the value "test" will be rejected because it isn't exactly 43 characters long like an ACME DNS-01 challenge response. Prior to d542ee03b5 acme-dns returned a "bad_subdomain" error when the "txt" was invalid.

<!-- gh-comment-id:373187416 --> @cpu commented on GitHub (Mar 14, 2018): @lukepolo What commit of `acme-dns` are you running? I think you hit the same thing I did that I fixed in https://github.com/joohoi/acme-dns/pull/42 Sending a `"txt"` with the value `"test"` will be rejected because it isn't exactly 43 characters long like an ACME DNS-01 challenge response. Prior to d542ee03b5292c36f13fe2dddd98c03793ab39b7 `acme-dns` returned a "bad_subdomain" error when the "txt" was invalid.
Author
Owner

@cpu commented on GitHub (Mar 14, 2018):

You can test if my theory is correct by sending "txt":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" instead.

<!-- gh-comment-id:373187576 --> @cpu commented on GitHub (Mar 14, 2018): You can test if my theory is correct by sending `"txt":"aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"` instead.
Author
Owner

@lukepolo commented on GitHub (Mar 14, 2018):

Yup it worked ! Thanks for that.

<!-- gh-comment-id:373187680 --> @lukepolo commented on GitHub (Mar 14, 2018): Yup it worked ! Thanks for that.
Author
Owner

@cpu commented on GitHub (Mar 14, 2018):

@lukepolo Happy to help!

<!-- gh-comment-id:373187741 --> @cpu commented on GitHub (Mar 14, 2018): @lukepolo Happy to help!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/acme-dns#16
No description provided.