• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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