in reply to Re: Create a TXT record for DKIM using Net::DNS
in thread Create a TXT record for DKIM using Net::DNS

'\' doesn't work because there has to be some way to escape a single quote in a single-quoted literal, which is done - as usual - using a backslash.

BTW, I wouldn't know why using single quotes here should make a difference with respect to what the OP wants to achieve....

(As to the OP's problem, my suspicion is that Net::DNS is doing some escaping on its own — though I haven't verified it.)

Replies are listed 'Best First'.
Re^3: Create a TXT record for DKIM using Net::DNS
by nethawk (Initiate) on Feb 10, 2009 at 10:51 UTC
    I assume too, that Net::DNS is making "some" escaping itself, although http://www.net-dns.org/docs/Net/DNS/RR/TXT.html states: For some applications of the TXT RR the semicolon is relevant, you will need to escape it on input. If i don't do escaping on $txtdata, i get a FORMERR back from bind.