The server_dns.exe utility is used to manage Plesk server’s DNS zone
template. Using this utility, you can perform the following tasks:
- adding resource records to or replacing already existing resource
records with new ones in Plesk server’s DNS zone template - specifying the status to be set for a domain’s DNS zone upon creation
of a domain - modifying SOA record for the DNS zone template
- setting Plesk name server DNS zone preferences regarding recursive
DNS queries from different types of hosts - managing the Access control list (ACL records)
Location
%plesk_cli%
Usage
server_dns.exe <command> [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command adds the following two resource records to the
domain DNS zone template, while removing all pre-existing resource
records from the domain DNS zone template:
-
new
MXresource record <domain> specifying mail.<domain> as
the mail exchanger for the record, and setting the mail exchanger’s
priority to 15. -
new
NSresource record <domain> setting domain ns.<domain> as
the name server.plesk bin server_dns.exe --set "MX,"",mail.<domain>,15;NS,"",ns.<domain>"
…