TXT Record for a domain that has a dash (-)

What is the name of the domain?

private-explorer.com

What is the error number?

No error number

What is the error message?

No error message.

What is the issue you’re encountering

It seems that adding acme challenge for a domain that contains a dash (-) does not work. For instance, when I add _acme-challenge.private-explorer.com, everything after _acme-challenge is deleted from the Name field.

What steps have you taken to resolve the issue?

Delete the dash.

What feature, service or problem is this related to?

DNS records

What are the steps to reproduce the issue?

Add a TXT record acme challenge for a domain that has a dash (-)

It will be the same regardless of whether your domain includes a dash or not.

In DNS zone files, you can either have the full name with a trailing dot, e.g. “_acme-challenge.example.com.” (note the trailing dot), or you can have the relative name, “_acme-challenge”, e.g. the label(s) without the zone name.

Cloudflare accepts both kind of inputs, however, it will be showing you the relative domain name, when dealing with subdomains in the Cloudflare Dashboard.

Cloudflare is currently publishing the following *_acme-challenge for your domain:

_acme-challenge.private-explorer.com. 300 IN TXT "eRnk0OMl_XbfDPlxUpT4KFYTnFCgFucNyzySZuoaF-Y"

It is a display thing alone, and won’t change how things are published.

3 Likes

That’s expected behavior. If the DNS entry is a subdomain, the domain name is dropped from the display to save room.

Your record is still there, and will resolve.

3 Likes

Sorry, my mistake.

Thank you very much!

2 Likes

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.