Unable to add a DNS TXT record longer than 255 characters

Created:

2016-11-16 13:07:31 UTC

Modified:

2017-06-14 10:29:10 UTC

2

Was this article helpful?


Have more questions?

Submit a request

Unable to add a DNS TXT record longer than 255 characters

Applicable to:

  • Plesk
  • DKIM

Note: This article has the reference to the issue with the fix available:

  • #PPPM-4778 "It was impossible to add a DNS record of the “TXT” type longer than 255 characters. Now, this limitation is increased to 512 characters."
    Fixed in:
Please consider updating your server:

Symptoms

Unable to add a DNS TXT record longer than 255 symbols.

Cause

This is internal Plesk issue with id #PPPM-4778 .

Resolution

The issue is fixed in Plesk Onyx 17.5.3. The limitation is increased to 512 characters.

As workaround use the following custom fix:

Note this fix has been tested for CentOS 7.3 and CloudLinux 7 only.

1. Save the following files and change them with attached:

/usr/local/psa/admin/sbin/dnsmng
/usr/local/psa/admin/plib/Dns/Zone/Rec.php
/usr/local/psa/admin/plib/Smb/Form/Final/DnsZone/Record.php

2. Create a backup of 'psa' database. How to backup/restore a Plesk database dump?

3. Enter psa database and execute the following queries:
alter table dns_recs modify column val varchar(512) not null;
alter table dns_recs modify column displayVal varchar(512) not null;
alter table dns_recs_t modify column val varchar(512) not null;
alter table dns_recs_t modify column displayVal varchar(512) not null;

Attachments:

Have more questions? Submit a request
Please sign in to leave a comment.