The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[Case 55171] Adding a long DKIM

Discussion in 'E-mail Discussions' started by DrunkenBeard, Jan 29, 2014.

  1. DrunkenBeard

    DrunkenBeard Registered

    Joined:
    Jan 29, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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
     
  2. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    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.
     
  3. DrunkenBeard

    DrunkenBeard Registered

    Joined:
    Jan 29, 2014
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    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?
     
  4. cPanelPeter

    cPanelPeter Technical Analyst III
    Staff Member

    Joined:
    Sep 23, 2013
    Messages:
    569
    Likes Received:
    15
    Trophy Points:
    18
    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.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,811
    Likes Received:
    671
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page