TXT record info not being properly escaped?


#1

When I run a secure query to google’s resolver (https://dns.google.com/resolve?name=google.com&type=16) I get back escaped data (a slash before the quote) like so:

"data": "\"v=spf1 include:_spf.google.com ~all\""

but when I run that same query against cloudflare’s resolver (https://cloudflare-dns.com/dns-query?ct=application/dns-json&name=google.com&type=16) it is not escaped:

"data": ""v=spf1 include:_spf.google.com ~all""

and this messes up formatting (at least for clients like Postman), who report back

Expected ',' instead of 'v'

when trying to format the JSON strings.


#2

Thanks for the feedback. I believe we’ve got an internal ticket to look at this based on a previous report. Appreciate you testing out the new endpoint!


#3

that was quick, you guys seem to have resolved it!


#4

This topic was automatically closed after 14 days. New replies are no longer allowed.