Mantis Bugtracker

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000067 [MyDNS-NG] Global minor always 2011-09-08 16:46 2018-02-07 20:22
Reporter joezhou View Status public  
Assigned To
Priority normal Resolution open  
Status new   Product Version 1.2.8
Summary 0000067: MyDNS and mydnsexport handle special characters in TXT records differently
Description MyDNS would automatically quote strings, and add '\' to special characters. mydnsexport would quote strings, but would not escape special characters. This creates a conflict on how strings such as DKIM domain key should be stored in the database.

For example,

# 3rdparty/bin/mydnsexport a10002.cpanel.test

default._domainkey.a10002.cpanel.test. 14400 IN TXT "k=rsa\; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhALZw57zoM3vu9ujjgbfv9veMAFTxrtQ4ZTBow92z7awuuB2xGTSn2LN1UQ9rpHIB1+vX+vuoxdlKywcMj2gydxTkg/RsXu4tQiYjLGlaOW0cdujSzgk5ZKKLnPcSsatTdwIDAQAB\;"

# dig @localhost TXT default._domainkey.a10002.cpanel.test

default._domainkey.a10002.cpanel.test. 86400 IN TXT "k=rsa\\\; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhALZw57zoM3vu9ujjgbfv9veMAFTxrtQ4ZTBow92z7awuuB2xGTSn2LN1UQ9rpHIB1+vX+vuoxdlKywcMj2gydxTkg/RsXu4tQiYjLGlaOW0cdujSzgk5ZKKLnPcSsatTdwIDAQAB\\\;"

# 3rdparty/bin/mydnsexport a10002.cpanel.test

default._domainkey.a10002.cpanel.test. 14400 IN TXT "k=rsa; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhALZw57zoM3vu9ujjgbfv9veMAFTxrtQ4ZTBow92z7awuuB2xGTSn2LN1UQ9rpHIB1+vX+vuoxdlKywcMj2gydxTkg/RsXu4tQiYjLGlaOW0cdujSzgk5ZKKLnPcSsatTdwIDAQAB;"

# dig @localhost TXT default._domainkey.a10002.cpanel.test

default._domainkey.a10002.cpanel.test. 86400 IN TXT "k=rsa\; p=MHwwDQYJKoZIhvcNAQEBBQADawAwaAJhALZw57zoM3vu9ujjgbfv9veMAFTxrtQ4ZTBow92z7awuuB2xGTSn2LN1UQ9rpHIB1+vX+vuoxdlKywcMj2gydxTkg/RsXu4tQiYjLGlaOW0cdujSzgk5ZKKLnPcSsatTdwIDAQAB\;"
Additional Information Also, the column size for data is too small as suggested in MyDNS manual. This would result in the truncation of larger records like DKIM domain keys.
Tags No tags attached.
Attached Files ? file icon mydns-ng-dkim.patch [^] (1,793 bytes) 2018-02-07 20:15

- Relationships

-  Notes
elrido (reporter)
2018-02-07 20:22

This is a very late reply, but only now have I hit the issues with the export of DKIM records. The patch that I attached allows for TXT records of up to 1024 bytes (given the data column is expanded accordingly).

Only the output of the mydnsexport for bind is modified, so it does not address this report in that regard.

- Issue History
Date Modified Username Field Change
2011-09-08 16:46 joezhou New Issue
2018-02-07 20:15 elrido File Added: mydns-ng-dkim.patch
2018-02-07 20:22 elrido Note Added: 0000217

Mantis 1.1.6[^]
Copyright © 2000 - 2008 Mantis Group
Powered by Mantis Bugtracker