Hello,
I have been struggling for a while with this one, and did not find any related GH issue :
When I want to insert a single backslash into a TXT record it appears to get crushed. Example as follows :
Current TXT record :
$ dig TXT +short _
dmarc.XXXX.com"v=DMARC1\; p=reject\; sp=reject\; pct=100\; rua=mailto:
xx...@yyyy.com\; ruf=mailto:
xx...@yyyy.com\; fo=1"
As defined (snipped) in my js config :
dmarc = [
"v=DMARC1\\;",
'p=reject\\;',
'sp=reject\\;',
'pct=100\\;',
'rua=mailto:
xx...@yyyy.com\\;',
'ruf=mailto:
xx...@yyyy.com\\;',
'fo=1'
].join(' ');
TXT('_dmarc', dmarc, TTL(300)),
And the preview gives me :
#1: MODIFY TXT _
dmarc.XXXX.com: ("v=DMARC1\; p=reject\; sp=reject\; pct=100\; rua=mailto:
xx...@yyyy.com\; ruf=mailto:
xx...@yyyy.com\; fo=1" ttl=300) -> ("v=DMARC1; p=reject; sp=reject; pct=100; rua=mailto:
xx...@yyyy.com; ruf=mailto:
xx...@yyyy.com; fo=1" ttl=300)
If I use 4 backslashes, instead of 2 in the code, I get 2 backslashes in the preview, as expected.
Any hint of what I would be missing here ?
Thanks
Nicolas