The dns.exe utility is used to manage DNS zones on domains and
domain aliases. Using this utility, you can perform the following tasks:
- enabling/disabling a local DNS service on a domain or domain alias
- adding/deleting resource records to/from a domain’s or domain alias’
DNS zone - setting Plesk name server as the master or slave server for a DNS
zone - assigning external master DNS servers for a DNS zone
- enabling or disabling the www-prefixed alias (in the
www.<domain name>form) support for canonical domain names - updating the Start-of-Authority (SOA) record for a DNS zone
Location
%plesk_cli%
Usage
dns.exe <command> [<domain name>|<domain_alias>] [
<option_1> [<param>]
[<option_2> [<param>]]
... [<option_N> [<param>]]
]
Example
The following command removes all pre-existing resource records from the
DNS zone on the domain example.com and adds the following two records
to the DNS zone:
new
MXresource record mail3.example.com specifying domain name
mail.example.com as the mail exchanger and setting the mail
exchanger’s priority to 15new
NSresource record ns2.example.com setting domain
ns.example.com as the name serverplesk bin dns.exe --set example.com -list "MX,mail3,mail.example.com,15;NS,ns2,ns.example.com"
…