• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

bug in server_dns CLI

Tozz

Regular Pleskian
We use "server_dns" to configure a default DNS zonefile for new domains. I believe there is a shortcoming in this tool. The separator for this utility is the semicolon (;). This happens to be the same separator as for DKIM keys. You guessed it, I need to add a DKIM key to the default zonefile template.

The command:

Code:
/opt/psa/bin/server_dns --set "NS,,ns1.example.com;NS,,ns2.example.com;TXT,default_domainkey,v=DKIM1; k=rsa; t=y; p=keyhere;"

Does not work, as Plesk believes the semicolons for the TXT DKIM field are separators for other records. I have been unable to find a workaround. Is this a bug?

Perhaps adding a flag to define the separator key is a wise idea?

I was also wondering if it is expected behavior that Plesk does not add the domain key to DNS once a DNS zonefile has been reset to default. Thus, when one resets its DNS zonefile to the system default DKIM no longer works.
 
Last edited:
You say Plesk 11.5 has no DKIM support, but it has. It is able to sign DKIM mail, and it publishes the key to the DNS. So DKIM seems to work fine, except for "server_dns". This seems like server_dns was forgotten when DKIM was implemented in Plesk.

Also, although this is for me a DKIM related issue.. The semicolon is a valid character in TXT records, so server_dns is still broken even if officially DKIM support is not available. Because adding just any record containing a semicolon would fail. The semicolon is not limited to DKIM.
 
Back
Top