© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
Cloudflare DevelopersCD
Cloudflare Developers•13mo ago
YaBaIKo

DNS TXT Record Escaping Issue - Affecting Service

Hi Cloudflare Support/Community,

We're experiencing an issue with DNS TXT record retrieval that's impacting our service. We have a TXT record for
endpoints.adm.allxon.com
endpoints.adm.allxon.com
containing a JSON string for API endpoint information.
Here's the original format of the JSON within the TXT record:

"api-v1={\"region\":\"GLOBAL\",\"endpoints\":{\"API\":[\"api.adm-dev.allxon.com\"]}}"
"api-v1={\"region\":\"GLOBAL\",\"endpoints\":{\"API\":[\"api.adm-dev.allxon.com\"]}}"


We use a DoH to get this data. Up until recently, this was working fine. However, the response format has changed.

Here's the current response from Cloudflare's DoH service:
{
    // ... other fields
    "Answer": [
        {
            // ... other fields
            "data": "\"api-v1={\\\"region\\\":\\\"GLOBAL\\\",\\\"endpoints\\\":{\\\"API\\\":[\\\"api.adm.allxon.com\\\"]}}\""
        }
    ]
}
{
    // ... other fields
    "Answer": [
        {
            // ... other fields
            "data": "\"api-v1={\\\"region\\\":\\\"GLOBAL\\\",\\\"endpoints\\\":{\\\"API\\\":[\\\"api.adm.allxon.com\\\"]}}\""
        }
    ]
}


And here's what a previous, correct response (from our logs) looked like:

{
    // ... other fields
    "Answer": [
        {
            // ... other fields
            "data": "\"api-v1={\"region\":\"GLOBAL\",\"endpoints\":{\"API\":[\"api.adm-dev.allxon.com\"]}}\""
        }
    ]
}
{
    // ... other fields
    "Answer": [
        {
            // ... other fields
            "data": "\"api-v1={\"region\":\"GLOBAL\",\"endpoints\":{\"API\":[\"api.adm-dev.allxon.com\"]}}\""
        }
    ]
}


For comparison, We also tried Google's DoH (
dns.google
dns.google
) returns the correct (original) format:

The crucial difference is the escaping within the
data
data
field. Previously, single backslashes (
\
\
) were used to escape the inner double quotes in the JSON. Now, Cloudflare's DNS is returning triple backslashes (
\\\
\\\
).

Our code expects the original single backslash escaping and can't parse the JSON with the triple backslashes.
We'd really appreciate🙏 it if you could revert to the previous single backslash escaping. Let me know if you need any further information.

Thanks in advance for your help!
Cloudflare Developers banner
Cloudflare DevelopersJoin
Welcome to the official Cloudflare Developers server. Here you can ask for help and stay updated with the latest news
85,042Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

DNS TXT record
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
DNS Propagation Issue - CNAME record stuck as TXT / Shadow record conflict
Cloudflare DevelopersCDCloudflare Developers / general-help
2mo ago
TXT DNS record is not propagating
Cloudflare DevelopersCDCloudflare Developers / general-help
2y ago
Phantom DNS TXT record conflict with certbot
Cloudflare DevelopersCDCloudflare Developers / general-help
3y ago