• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

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