TXT DNS records over 255 characters on Tsohost

Discussion in 'IT & Internet' started by triatic, Sep 10, 2019.

  1. triatic

    triatic UKBF Newcomer Free Member

    2 0
    I am trying to create a DNS record which is over 255 characters long on my Tsohost cPanel account, for the purposes of adding a DKIM key. The problem is, as soon as I go over 255 characters, the system seems to add a space into the TXT record, which breaks the DKIM key.

    Has anyone come across this before?

    Here is a dig result for a random string which is 256 characters long. The system has added a space before the final "y", despite no such space being added into the Zone Editor in cPanel.

    Code:
    C:\>dig txt-test.mydomain.co.uk. txt (at)ns1.tsohost.com
    
    ; <<>> DiG 9.14.4 <<>> txt-test.mydomain.co.uk. txt (at)ns1.tsohost.com
    ;; global options: +cmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9066
    ;; flags: qr aa rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1
    ;; WARNING: recursion requested but not available
    
    ;; OPT PSEUDOSECTION:
    ; EDNS: version: 0, flags:; udp: 2800
    ;; QUESTION SECTION:
    ;txt-test.mydomain.co.uk.      IN      TXT
    
    ;; ANSWER SECTION:
    txt-test.mydomain.co.uk. 14400 IN      TXT     "gegopptubufhdeqqhlmndkaqcyabyywrgbxfwfcuzhamiblzpdhoqrhychdwztoelxmgwjbltytrrtethsgujzcpcosllzmwpdvqngmfpsmpemydoxpvkhhtqichiuzmvikkumjrufkpkibgblvkaqdfdopaowyrsqdpnoqehlgkaozcctkgtfxaftgzldtxfzmralfcwmlvcpqciwhabjhyncblawdrljeeysxhogrqkufpmljzbqcefxbnbaj" " y"
    
    ;; Query time: 11 msec
    ;; SERVER: 185.52.27.27#53(185.52.27.27)
    ;; WHEN: Tue Sep 10 14:46:19 GMT Summer Time 2019
    ;; MSG SIZE  rcvd: 324
     
    Posted: Sep 10, 2019 By: triatic Member since: Sep 10, 2019
    #1
  2. Mike Hayes

    Mike Hayes UKBF Enthusiast Free Member

    1,033 261
    Just tried to reproduce this here in cPanel 82.0.14 without an issue (260 chars):

    [​IMG]

    Code:
    ;; ANSWER SECTION:
    
    test.my.domain. 300 IN TXT "5fRkn8TYQDJUfZmik5CZ3fN2RMaGtJ4DMHOapCFcDteHqMXqSgmnzl32ZDP6bRvuzWVvVDZIGYezTCbdKytFLVna1zadiJEYtRvq8pIT702xk03N2lxaKPEJQ3SlY1MJCBi8a1PblifsT0p3ArhxVc1g020T4SeC8jv3LQU62GjTJws2aEnJztlHt9p2zdg6ujphquTtMSoYwPwusa2QJ4dASXPqyiHHvRe1U5Lqqqvg4PxKC3AN8iCe1LITEdU" "YBSpw"
    
    Probably best to contact Tsohost support.
     
    Posted: Sep 10, 2019 By: Mike Hayes Member since: Jan 7, 2016
    #2
  3. triatic

    triatic UKBF Newcomer Free Member

    2 0
    Thanks, I will contact Tsohost support as this issue is almost certainly specific to them. But if there's anyone else using a Tsohost cPanel account reading this it would be great if they could test this too so I know if mine is an isolated case or a wider issue.
     
    Posted: Sep 10, 2019 By: triatic Member since: Sep 10, 2019
    #3
  4. KM-Tiger

    KM-Tiger UKBF Legend Full Member - Verified Business

    9,834 2,614
    What you have is correct.

    The limit of 255 characters comes from DNS where TXT records cannot exceed that length. To split into two quoted parts separated by a space is the workaround and DKIM will reasemble the two parts.

    If your key is not working, there will be some other reason.
     
    Posted: Sep 10, 2019 By: KM-Tiger Member since: Aug 10, 2003
    #4
  5. KM-Tiger

    KM-Tiger UKBF Legend Full Member - Verified Business

    9,834 2,614
    Posted: Sep 10, 2019 By: KM-Tiger Member since: Aug 10, 2003
    #5
  6. Mike Hayes

    Mike Hayes UKBF Enthusiast Free Member

    1,033 261
    There's a space in the actual quoted string (first character of the second string).
     
    Posted: Sep 10, 2019 By: Mike Hayes Member since: Jan 7, 2016
    #6
  7. KM-Tiger

    KM-Tiger UKBF Legend Full Member - Verified Business

    9,834 2,614
    You are quite right, sharper eyes than mine!

    So that must be a bug with Tsohost.
     
    Posted: Sep 10, 2019 By: KM-Tiger Member since: Aug 10, 2003
    #7
  8. fisicx

    fisicx It's Major Clanger! Staff Member

    30,725 9,012
    I thought Tsohost were the bug. Why do people still use these numpties?
     
    Posted: Sep 12, 2019 at 7:26 AM By: fisicx Member since: Sep 12, 2006
    #8
  9. gpietersz

    gpietersz UKBF Newcomer Free Member

    22 1
    I find people are very reluctant to switch hosts, even with good reasons to do so.

    I would have thought all the issues Tsohost have had recently would be enough, but they still seem to have a lot of customers.
     
    Posted: Sep 16, 2019 at 12:30 PM By: gpietersz Member since: Sep 10, 2019
    #9