Hi Martin, I remember seeing this as well, as Martin said it is dig that escapes it. If you take a look at the source for dig txt_totext() is called which prepends \ to ;.
Easiest way to verify is to do a tcpdump when the query is run so you can see the data that is returned by the DNS server, as an example: 14:07:07.632440 IP 192.168.1.254.53 > 192.168.1.222.34753: 30290 1/0/0 TXT "v=DKIM1;k=rsa;g=*;s=email;h=sha1;t=s;p=MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBAN3FDDsxUx9ZKq2g5dCTOs/EhZv5YRmCRkqt3YKWeyL2x1Tx+xK+8W7NWoG4V6AdLkccGJIm6jeKbX7ojlIcvL0CAwEHHQ==" (234) Thanks On Wed, Jan 18, 2012 at 1:41 PM, Peter van Dijk <[email protected]> wrote: > Hello Martin, > > On Jan 17, 2012, at 15:22 , Martin Wadsten wrote: > >> Im trying to add a TXT record with a semi-colon ;, but pdns seems to add a / >> before. Is there anyone who has the same problem, and knows the solutions on >> this issue? >> >> Here's an exampel. >> >> k=rsa ; p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQ >> CnKH7bFSjagGhqh8rugg476WDGRP9MAoykXS4F8z >> QDqPz+hWDrwngctLzd/sm3ix3jTwvFZCDtJgnKld >> Tk5k2kfiHBpbupIXZNmEjyc34Ju7QWcHCR94euBh >> sVWONfwFvAWqGwvfk5Mj/fWMRKf6KEbd4O1JGllj Uyd3KilAImhwIDAQAB ; >> >> DIG output >> >> 600 IN TXT "k=rsa \; >> p=MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCnKH7bFSjagGhqh8rugg476WDGRP9MAoykXS4F8zQDqPz+hWDrwngctLzd/sm3ix3jTwvFZCDtJgnKldTk5k2kfiHBpbupIXZNmEjyc34Ju7QWcHCR94euBhsVWONfwFvAWqGwvfk5Mj/fWMRKf6KEbd4O1JGlljUyd3KilAImhwIDAQAB >> \;" > > This is just dig escaping ';', presumably because ; is the comment character > in BIND zone files. PDNS is not serving this backslash. > > Kind regards, > Peter van Dijk > _______________________________________________ > Pdns-users mailing list > [email protected] > http://mailman.powerdns.com/mailman/listinfo/pdns-users _______________________________________________ Pdns-users mailing list [email protected] http://mailman.powerdns.com/mailman/listinfo/pdns-users
