• 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: server_dns does not work as expected & dns help output

Tozz

Regular Pleskian
According to /opt/psa/bin/server_dns -h:

Code:
    --set or -s        <rec1;rec2;...> Adds all resource records to DNS zone
                                       template. Old records will be removed.
                                       Record format is
                                       "<type>,<host>,<ip>[,<option>]".
                                       Examples: "NS,<domain>.,ns.<domain>.",
                                       "MX,<domain>.,mail.<domain>.,10"

I tried this exact example:

Code:
# ./server_dns --set "NS,<domain>.,ns.<domain>."
Incorrect DNS record values were specified.

The Command Line Reference seems to be correct, so only the CLI help output is wrong.

Plesk CLI reference

Also. According to /opt/psa/bin/dns -h:

Code:
    --sync <domain_name|domain_alias_name>
                                       cu_dns_command_description_sync
    --sync-all-zones                   cu_dns_command_description_sync_all_zones

It looks like the 'cu_dns_command-description_sync' is a placeholder that is not replaced by the proper help text.
 
Last edited:
I see following:

--set or -s <rec1;rec2;...> Adds all resource records to DNS zone
template. Old records will be removed.
Record format is
"<type>,<host>,<ip>[,<option>]".
Examples: "NS,,ns.<domain>.",
"MX,,mail.<domain>.,10"

And all works fine for me:

# plesk bin server_dns --set "MX,,mail34.ppu11-5.demo.pp.plesk.ru.,10"
DNS record was successfully updated in the server-wide DNS zone template.
 
Igor, probably you've checked our internal build there help message was already corrected :) As for --sync-all-zones it's an internal command and will be hidden in the nearest microupdate.
 
Igor, probably you've checked our internal build there help message was already corrected :) As for --sync-all-zones it's an internal command and will be hidden in the nearest microupdate.

Exactly :)

# cat /root/.autoinstaller/microupdates.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<patches>
<product id="plesk" version="11.5.30" installed-at="20130816T133814">
<patch version="13" timestamp="" installed-at="20130816T133814" />
</product>
</patches>
 
Back
Top