The server_dns
utility is used to manage the Plesk server’s DNS zone
template through CLI. By using this utility, you can perform the
following tasks:
- adding resource records to or replacing already existing resource
records with new ones in the Plesk server’s DNS zone template. - specifying the status to be set for a domain’s DNS zone upon creation
of a domain. - updating the Start-of-Authority (SOA) record for the DNS zone
template. - setting the Plesk name server DNS zone preferences regarding
recursive DNS queries from different types of hosts. - managing the Access control list (ACL records).
Usage
server_dns <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
MX
resource record <domain> specifying mail.<domain> as
the mail exchanger for the record, and setting the mail exchanger’s
priority to 15. -
new
NS
resource record <domain> setting domain ns.<domain> as
the name server.plesk bin server_dns --set "MX,"",mail.<domain>,15;NS,"",ns.<domain>"
…