[Case 55171] Adding a long DKIM

DrunkenBeard

Registered
Jan 29, 2014
2
0
1
cPanel Access Level
Root Administrator
Hello,

I have to add a long (> 255) DKIM record to my DNS Zone but WHM refuses to let me do that. How can I add a TXT record that is longer than 255 characters either manually or through WHM?

Thanks
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
Hello,

Where exactly are you hitting this limit?
Is it in WHM => Edit DNS Zone ? or in cPanel => Advanced DNS Editor or in cPanel => Email Authentication?

You can manually edit the zone file via ssh if you need to.

Code:
# cp -rfp /var/named/zonefile.tld.db /root
# vi /var/named/zonefile.tld.db
Add the dkim record and increase the serial number.

Then save the file and type:

Code:
# rndc reload
That should take care of it. Depending on where you saw this limit, you should open a Feature Request to allow for longer than 255 characters in the dkim field.
 

DrunkenBeard

Registered
Jan 29, 2014
2
0
1
cPanel Access Level
Root Administrator
Hi,

Thanks for your answer. I forgot to add increase the serial number though and now I can't seem to do any change on the DNS zone (the change appears on the zone file but it doesn't appear if I query the server). What can I do to make the DNS service take my changes into account?
 

cPanelPeter

Senior Technical Analyst
Staff member
Sep 23, 2013
586
25
153
cPanel Access Level
Root Administrator
Hello,

You can just go back in and increase the serial number again and save and re-run the
rndc reload

That should update the zone so that when you query it, it will return the correct results.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

I wanted to add that there is an internal case open to add support for TXT records longer than 255 bytes. For reference, the internal case number is 55171.

Thank you.