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

Technical Analyst III
Staff member
Sep 23, 2013
575
20
143
cPanel Access Level
Root Administrator
Twitter
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

Technical Analyst III
Staff member
Sep 23, 2013
575
20
143
cPanel Access Level
Root Administrator
Twitter
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

Technical Support Community Manager
Staff member
Apr 11, 2011
47,911
2,233
363
cPanel Access Level
DataCenter Provider
Twitter
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.