TeemIp / teemip-zone-mgmt

TeemIP extension that provides zone management features
GNU Affero General Public License v3.0
1 stars 0 forks source link

Larger DNS entries eg. for dkim #4

Closed dsm-museum-it closed 7 months ago

dsm-museum-it commented 8 months ago

At the moment there is a fixed limit of 256 characters per txt entry. Especially for txt records for DKIM in many cases this will be insufficient.

A larger rdata value should then be split into chunks of max. 256 characters per line inside parentheses when displaying the entry for the data file eg.

name._domainkey IN TXT ("v=DKIM1;"
                         "p=MIGfMA0G ... "
                         "oGeLnQg ... "
                         "tdC2UzJ1lW ... "
                         "MmPSPDdQPNUYckcQ2QIDAQAB")

Or in a single line with space separated chunks.

name._domainkey IN TXT "v=DKIM1" "p=MIGfMA0G ... " "oGeLnQg ... " "tdC2UzJ1lW ... " "MmPSPDdQPNUYckcQ2QIDAQAB")
xtophe38 commented 8 months ago

Noted. Thanks for the info. I'll look at a proper implementation within teemip-zone-mgmt.

xtophe38 commented 7 months ago

I've just pushed changes to the TXT Record class that enable the management of long text entries.

Basically, TeemIP TXT records can now be chained. Their display in db.file has been reviewed and is aligned with the first format given above.

Hipska commented 7 months ago

To be clear and for future reference, the commit @xtophe38 is talking about seems to be 1625e33.

xtophe38 commented 7 months ago

Thanks @dsm-museum-it and and @Hipska for your contributions to the extension !