extension: Extensions

The extension utility allows performing a number of operations on Plesk extensions (former modules), like creating and registering them in Plesk, installing extensions to Plesk, and other. Usage extension <command> [<param>][ <option_1> [<param>] [<option_2>] ] Example The following command creates the extension named Mod_1 which does not contain installation scripts defined by the extension template: plesk bin extension -c Mod_1 -no-scripts Commands Command Parameter Description Example --create or -c <name> Creates a new extension based on the extension template. Note that created extensions are not automatically registered in Plesk. To create a extension named Mod_1: plesk bin extension -c Mod_1 --register or -r <name> Register a created extension in Plesk. After the registration, the extension appears in the Extensions list of the Server Administration Panel. To register the Mod_1 extension: plesk bin extension -r Mod_1 --install or -i <file> Installs a extension from a .zip file. To install an extension from the mod.zip file: plesk bin extension -i /tmp/mod.zip --install-url <url> Installs an extension from an URL. To install an extension from the URL http://example.com/mod.zip plesk bin extension --install-url http://example.com/mod.zip --upgrade or -g <file> Installs a extension from a .zip file or upgrades an already installed extension to a later version. To upgrade an already installed extension from the mod.zip file: plesk bin extension -g /tmp/mod.zip --upgrade-url <url> Installs a extension from an URL or upgrades an already installed extension to a later version. To install an extension from the URL http://example.com/mod.zip plesk bin extension --upgrade-url http://example.com/mod.zip --uninstall or -u <name> Removes a specified registered extension from Plesk. To remove the Mod_1 extension: plesk bin extension -u Mod_1 --pack or -p <name> Exports a specified extension to a .zip file for further distribution. If you do not specify a zip file location with the destination option, the file will be created in the current directory. To export the Mod_1 extension to a zip file: plesk bin extension -p Mod_1 --exec or -e <name> <command> [<options>] Executes a specified script defined in a certain extension. To run the post-install.php script of the Mod_1 extension with some parameters: plesk bin extension -e Mod_1 post-install.php upgrade 1.4 --list or -l Displays the list of installed extensions. To display the list of currently installed extensions: plesk bin extension -l --enable <name> Makes the extension active and accessible for users. To enable the Mod_1 extension: plesk bin extension --enable Mod_1 --disable <name> Makes the extension inactive and inaccessible for users. To disable the Mod_1 extension: plesk bin extension --disable Mod_1 --call <name><command>[<options>] Calls a command-line interface of the specified extension. To run the --list command of the git utility available for the Git Manager extension: plesk bin extension --call git --list --help or -h Displays help on the use of the utility. To view help on the use of this utility: plesk bin extension -h Options Option Parameter Description Example -destination <path> A path to the directory where the exported extension should be located. For using with the --pack command. To set the /tmp location for the exported file: plesk bin extension -p Mod_1 -destination /tmp -no-ui Do not add resource files defined by the extension template to a created extension. The new extension will contain a meta file and installation scripts only. For using with the --create command. To create a extension named Mod_1 without resource files: plesk bin extension -c Mod_1 -no-ui -no-scripts Do not add installation scripts defined by the extension template to a created extension. The new extension will contain a meta file and resource files only. For using with the --create command. To create a extension named Mod_1 without installation scripts: plesk bin extension -c Mod_1 -no-scripts

event_handler: Event Handlers

You can make Plesk run a particular action every time a certain event occurs in Plesk. For example, you are able to save each added IP address to a log file or perform other routine operations. Plesk triggers actions relying on event handles - links between events and actions. When an event happens, Plesk finds all event handlers linked to this event and runs actions assigned to these handlers. Event handlers management is available via the command line interface or the Plesk GUI. For more information on creating event handlers via GUI, see the section Adding Event Handlers (Linux Hosting) of the Administrator's Guide. To manage event handlers via command line, use the event_handler utility. This utility performs the following tasks: creating an event handler updating event handler settings listing all event handlers and their settings listing events that can trigger event handlers listing users on behalf of which scripts defined in event handler settings are executed removing event handlers Note: The utility is available since Plesk 9.0. If you want to create an event handler for a particular event, you first need to find out if Plesk supports handlers for this event. To do it, execute the following command: plesk bin event_handler --list-events After you make sure that the event you need is present in the list, define the following parameters: an action to perform, a user who performs this action, and the action priority. An action that Plesk will perform after the event occurs may be specified in three ways: Run a snippet of code Run a specific script file. Run a binary file. A user on behalf of which Plesk will execute the script must have enough permissions to perform the action. A priority is an integer number from 0 to 100 that defines the execution sequence of event handlers assigned to a single event. The highest priority handlers are executed first. Usage event_handler <command> [<handler_id>] [ <option_1> [<param>] [<option_2> [<param>]] ... [<option_N> [<param>]] Example The following command creates the event handler for the "IP address created" action that triggers the email_ip.sh script if an IP address is added. The handler priority is set to 50. plesk bin event_handler --create -command /bin/events/email_ip.sh -priority 50 -user root -event 5 Commands Command Parameter Description Example --create or -c Creates an event handler. Requires -command , -priority , -user , and -event options. To create an event handler with priority 50 that triggers the email_ip.bat script if an IP address is added: plesk bin event_handler --create -command email_ip.sh -priority 50 -user root -event 5 or plesk bin event_handler -c -command email_ip.sh -priority 50 -user root -event 5 --update or -u <handler_id> Updates event handler settings. Requires -user option. To change the priority of event handler with ID 1 : plesk bin event_handler --update 1 -user jdoe -priority 12 or plesk bin event_handler -u 1 -user jdoe -priority 12 --delete or -d <handler_id> Removes an event handler. To remove the event handler with ID 1: plesk bin event_handler --delete 1 or plesk bin event_handler -d 1 --list or -l Provides information about existing handlers and their settings. To list event handlers: plesk bin event_handler --list or plesk bin event_handler -l --list-events or -le Lists events that can trigger event handlers. Each record includes event ID and description. To view the available events: plesk bin event_handler --list-events or plesk bin event_handler -le --list-users or -lu Lists users on behalf of which scripts defined in event handler settings (-command option) are executed. To list users: plesk bin event_handler --list-users or plesk bin event_handler -lu --help or -h Displays help on the utility use. To view help on the use of this utility: plesk bin event_handler --help or plesk bin event_handler -h Options Note: These options are used with --update and --create operations only. Option Parameter Description Example -user <login> Specifies the login name of a Plesk user on behalf of which scripts/files defined in event handler settings are executed. Note: Login name of Plesk Administrator is "root". To run scripts of the event handler with ID 1 on behalf of John: plesk bin event_handler --update 1 -user jdoe -priority <0-100> Value that determines the importance of an event handler relative to other event handlers assigned to the same event. Lowest priority is 0. Highest priority is 100. To set the priority of the handler with ID 1 and user jdoe to 75: plesk bin event_handler --update 1 -user jdoe -priority 75 -command <command> Specifies one of the following: Script code Full name of the file which stores the code Full name of an executable file This code/file is executed on triggering a particular event handler. Use "\" symbol to escape quotes within commands. To update the event handler command: plesk bin event_handler --update 1 -user jdoe -command ipconfig.sh -event <event name> Specifies the event that triggers a particular event handler. Use --list-events or -le command to find the required ID. To set the event ID of the event handler (with ID 2) to 17: plesk bin event_handler --update 2 -event 17 -user root

domalias: Domain Aliases

The domalias utility is used to manage domain aliases through CLI. By using this utility, you can perform the following tasks: creating or deleting domain aliases viewing the information about domain aliases enabling and disabling Web, Tomcat, and mail services on domain aliases Usage domalias <command> [ <option_1> [<param>] [<option_2> [<param>]] ... [<option_N> [<param>]] ] Example The following command creates domain alias example.net for the domain example.com, enables the domain alias, and enables mail service on the domain alias. plesk bin domalias --create example.net -domain example.com -status enabled -mail true Commands Command Parameter Description Example --create or -c <alias_name> Creates a new domain alias. Requires -domain option. To create a domain alias example.net for the domain example.com: plesk bin domalias --create example.net -domain example.com or plesk bin domalias -c example.net -domain example.com --update or -u <alias_name> Updates configuration of an existing domain alias with the data specified in the options. To enable mail service on the domain alias example.net: plesk bin domalias --update example.net -mail true or plesk bin domalias -u example.net -mail true --delete or -d <alias_name> Deletes a domain alias. To delete the domain alias example.net: plesk bin domalias --delete example.net or plesk bin domalias -d example.net --delete-all or -da <domain_name> Deletes all domain aliases for the specified domain. To delete all domain aliases for the domain example.com: plesk bin domalias --delete-all example.com or plesk bin domalias -da example.com --info or -i <alias_name> Displays information about a domain alias. To view information about the domain alias example.net: plesk bin domalias --info example.net or plesk bin domalias -i example.net --on <alias_name> Enables a domain alias. To enable domain alias example.net: plesk bin domalias --on example.net --off <alias_name> Disables a domain alias. To disable domain alias example.net: plesk bin domalias --off example.net --rename or -r <alias_name> Renames a domain alias. Requires -new-name option. To rename the domain alias from example.net to example.org: plesk bin domalias --rename example.net -new-name example.org or plesk bin domalias -r example.net -new-name example.org --help or -h <alias_name> Displays help on the use of the utility. To view help on the use of this utility: plesk bin domalias --help or plesk bin domalias -h Options Option Parameter Description Example -new-name <FQDN> Sets a new name for an existing domain alias. Required with --rename. To rename the domain alias from example.net to example.org: plesk bin domalias -r example.net -new-name example.org -mail true|false Enables/Disables mail service on a domain alias. Is true by default. To disable mail service on the domain alias example.net: plesk bin domalias -u example.net -mail false -web true|false Enables/Disables web service on a domain alias. Is true by default. To disable web service on the domain alias example.net: plesk bin domalias -u example.net -web false -domain <FQDN> Specifies the name of the domain for which domain alias is to be created. Required with --create. To create a domain alias example.net for the domain example.com plesk bin domalias -c example.net -domain example.com -status enabled|disabled Enables/Disables domain alias. Is enabled by default. To disable domain alias example.net: plesk bin domalias -u example.net -status disabled -tomcat true|false Enables/Disables the Tomcat service on a domain alias. Is false by default. To enable the Tomcat service on the domain alias example.net: plesk bin domalias -u example.net -tomcat true -seo-redirect non-www|www|none Turns on the search engine friendly HTTP 301 redirection. Use 'non-www' to redirect from www.domain to domain, 'www' to redirect from domain to www.domain, and 'none' to turn off the redirection (default: non-www). To turn on redirection for the domain alias example-alias.com to www.example.com: plesk bin subscription -u example-alias.com -seo-redirect www To turn on redirection for the domain alias example-alias.com to example.com: plesk bin subscription -u example-alias.com -seo-redirect non-www -dns true|false Enables/Disables DNS zone on a domain alias. To enable the DNS zone on the domain alias example.net: plesk bin domalias -u example.net -dns true

domain_restriction: Prohibited Domain Names

The domain_restriction utility is used to manage the list of domain names that are prohibited when users create sites. This prevents users from creating sites with the names identical to the domain names of popular online stores and other resources. Then, these users can receive email messages sent by your customers to these domains, because the mail server ensures local delivery. Usage domain_restriction <command> [ <option_1> [<param>] [<option_2> [<param>]] ... [<option_N> [<param>]] ] Example The following command adds the domain name example.com to the list of prohibited domain names in Plesk: plesk bin domain_restriction --add -name example.com Commands Commands Command Parameter Description Example --add or -a Adds a domain name to the list of prohibited domain names. To add a domain name example.com to the list of prohibited domain names: plesk bin domain_restriction --add -name example.com or plesk bin domain_restriction -a -name example.com --add-list Adds several domain names to the list of prohibited domain names. Used with the -list option. To add a number of names to the list of prohibited domain names: plesk bin domain_restriction --add-list -list example1.com,example2.com,example3.com --remove-list Removes all domain names from the list of prohibited domain names. To remove all domain names from the list: plesk bin domain_restriction --remove-list --remove or -r Removes a domain name from the list of prohibited domain names. To remove the domain name example1.com from the list: plesk bin domain_restriction --remove -name example1.com or plesk bin domain_restriction -r -name example1.com --rename Updates a prohibited domain name. To modify the prohibited domain name example1.com: plesk bin domain_restriction --rename -name example1.com -new-name example2.com --enable or -e Turns on the checking for prohibited domain names. To enable checking for prohibited domain names server-wide: plesk bin domain_restriction --enable --disable or -d Turns off the checking for prohibited domain names. To disable checking for prohibited domain names server-wide: plesk bin domain_restriction --disable --list or -l Displays the list of prohibited domain names. To view the list of prohibited domain names in Plesk: plesk bin domain_restriction --list or plesk bin domain_restriction -l --help or -h Displays help on the usage of the utility. To view help on the use of the domain_restriction utility: plesk bin domain_restriction --help or plesk bin domain_restriction -h Options Option Parameter Description Example -name <domain> Specifies a domain name. To add a domain name example.com to the list of prohibited domain names: plesk bin domain_restriction --add -name example.com -new-name <domain> Specifies a new name for a domain in the list of prohibited domain names. Used with the --rename command. To modify the prohibited domain name example1.com: plesk bin domain_restriction --rename -name example1.com -new-name example2.com -list <domain_1>[, <domain_2>, ...<domain_n>] Specifies a list of domain names. Used with the --add-list command. To add a number of names to the list of prohibited domain names: plesk bin domain_restriction --add-list -list example1.com,example2.com,example3.com

dns: DNS Zones on Domains

The dns utility is used to manage DNS zones on domains and domain aliases through CLI. By using this utility, you can perform the following tasks: adding resource records to or deleting them from a domain's or domain alias' DNS zone enabling or disabling a local DNS service on a domain or domain alias 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 Usage dns <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 MX resource record mail3.example.com specifying domain name mail.example.com as the mail exchanger and setting the mail exchanger's priority to 15 new NS resource record ns2.example.com setting domain ns.example.com as the name server plesk bin dns --set example.com -list "MX,mail3,mail.example.com,15;NS,ns2,ns.example.com" Commands Command Parameter Description Example --add or -a <domain_name>|<domain_alias> Adds a resource record to a domain's DNS zone. If a record already exists, the command returns code 2. To add an MX resource record mail3.example.com to the DNS zone on the domain example.com and specify mail exchanger mail.example.com for the record: plesk bin dns --add example.com -mx mail3 -mailexchanger mail.example.com or plesk bin dns -a example.com -mx mail3 -mailexchanger mail.example.com --set or -s <domain_name>|<domain_alias> Adds specified resource records to and removes all pre-existing resource records from a domain's DNS zone. Requires the -list option. To add the following two resource records to the DNS zone of domain example.com, while removing all pre-existing resource records from the DNS zone: new MX resource record mail3.example.com specifying domain name mail.example.com as the mail exchanger for the record, and setting the mail exchanger's priority to 15: new NS resource record ns2.example.com setting domain ns.example.com as the name server: plesk bin dns --set example.com -list "MX,mail3,example.com,15;NS,ns2,ns.example.com" or plesk bin dns -s example.com -list "MX,mail3,example.com,15;NS,ns2,ns.example.com" --del or -d <domain_name>|<domain_alias> Deletes a resource record from a domain's DNS zone. To delete an existing MX resource record mail3.example.com (for which mail exchanger mail.example.com is specified) from the DNS zone for the domain example.com: plesk bin dns --del example.com -mx mail3 -mailexchanger mail.example.com or plesk bin dns -d example.com -mx mail3 -mailexchanger mail.example.com --del-all or -da <domain_name>|<domain_alias> Deletes all resource records from a domain's DNS zone. To delete all existing resource records from the DNS zone for the domain example.com: plesk bin dns --del-all example.com or plesk bin dns -da example.com --reset or -res <domain_name>|<domain_alias> Restores the default resource records for a domain's zone based on the Plesk server DNS zone template. Requires the -ip option. To restore the default resource records for a domain's zone based on the Plesk server DNS zone template: plesk bin dns --reset example.com -ip 192.0.2.9 or plesk bin dns -res example.com -ip 192.0.2.9 --on <domain_name>|<domain_alias> Enables DNS service on a domain or domain alias. To enable DNS service on the domain example.com: plesk bin dns --on example.com --off <domain_name>|<domain_alias> Disables DNS service on a domain or domain alias. To disable DNS service on the domain example.com: plesk bin dns --off example.com --set-master <domain_name>|<domain_alias> Sets the Plesk name server as the master server for domain's or domain alias' DNS zone. To set the Plesk name server as the master server for DNS zone on the domain example.com: plesk bin dns --set-master example.com --set-slave <domain_name>|<domain_alias> Sets the Plesk name server as the slave server for domain's or domain alias' DNS zone. To set the Plesk name server as the slave server for DNS zone on the domain example.com: plesk bin dns --set-slave example.com --update-soa <domain_name>|<domain_alias> Updates the SOA record settings for domain's or domain alias' DNS zone. To set the TTL value for the SOA record of the DNS zone on the domain example.com to 5 hours: plesk bin dns --update-soa example.com -soa-ttl 5H --info <domain_name>|<domain_alias> Displays the list of resource records for a domain's or domain alias' DNS zone. To view the list of resource records in the DNS zone for the domain example.com: plesk bin dns --info example.com --help or -h Displays help on the use of the utility. To view help on the use of the dns utility: plesk bin dns --help or plesk bin dns -h Options Option Parameter Description Example -a ''|<subdomain_name> Specifies the A type resource record for a subdomain in a domain's DNS zone. Used with the --add and --del commands only. Requires the -ip option. To add an A resource record sample.example.com specifying IP address 192.0.2.78 for the subdomain to the DNS zone on the domain example.com: plesk bin dns -a example.com -a sample -ip 192.0.2.78 To add an AAAA resource record sample.example.com specifying IP address 2001:db8:85a3:0:0:8a2e:370:7334 for the subdomain to the DNS zone on the domain example.com: plesk bin dns -a example.com -aaaa sample -ip 2001:db8:85a3:0:0:8a2e:370:7334 -aaaa ''|<subdomain_name> Specifies the AAAA type resource record for a subdomain in a domain's DNS zone. Used with the --add and --del commands only. Requires the -ip option. -ip <IP_address> Specifies an address for creating a resource record (IPv4 for A type records and IPv6 for AAAA type records) in a domain's DNS zone. Used with the --add and --del commands only. -ns ''|<subdomain_name> Specifies the NS type resource record in a domain's DNS zone. Used with the --add and --del commands only. Requires the -nameserver option. To add an NS resource record ns2.example.com specifying domain name example.net as the name server to the DNS zone on domain name example.com: plesk bin dns -a example.com -ns ns2 -nameserver example.net -nameserver <domain_name> Specifies the name of a nameserver for creating an NS type resource record in a domain's DNS zone. -mx ''|<subdomain_name> Specifies the MX type resource record in a domain's DNS zone. Used with the --add and --del commands only. Requires the -mailexchanger option. To add an MX resource record mail3.example.com specifying domain name mail.example.com as the mail exchanger for the record, and setting the mail exchanger's priority to the DNS zone on the domain example.com to 15: plesk bin dns -a example.com -mx mail3 -mailexchanger mail.example.com -priority 15 -mailexchanger <domain_name> Specifies the name of a mail exchanger for creating an MX type DNS record in a domain's DNS zone. -priority [0-50] Specifies the mail exchanger priority (0 - the highest, 50 - the lowest) for creating an MX type DNS record in a domain's DNS zone. -cname ''|<subdomain_name> Specifies the CNAME type resource record in a domain's DNS zone. Used with the --add and --del commands only. Requires the -canonical option. To add a CNAME type resource record sample.example.com for a canonical name example.org to the DNS zone on domain example.com: plesk bin dns --add example.com -cname sample -canonical example.org -canonical <domain_name> Specifies a canonical name for creating a CNAME type DNS record in a domain's DNS zone. -ptr ''|<subdomain_name> Specifies the PTR type resource record in a domain's DNS zone. Used with the --add and --del commands only. Requires the -subnet option. To add a PTR type DNS record 192.0.2.1/16 for the subdomain sample to the DNS zone for the domain example.com: plesk bin dns -a example.com -ptr sample -subnet 192.0.2.1/16 -subnet <IP_address>|<subnet_mask> Specifies an IP address and a subnet mask for creating a PTR type DNS record in a domain's DNS zone. -srv ''|<subdomain_name> Specifies the SRV type resource record in a domain's DNS zone. Used with the --add and --del commands only. Requires the use of options -srv-service, -srv-target-host, -srv-port. To add an SRV record to make domain example.com handle SIP protocol connections, that will point to a server named sipserver.sample.com listening on TCP port 5060. The priority given here is 0, and the weight is 5: plesk bin dns --add example.com -srv '' -srv-service sip -srv-target-host sipserver.sample.com. -srv-protocol TCP -srv-port 5060 -srv-priority 0 -srv-weight 5 -srv-priority [0-50] Specifies priority of the SRV record (0 - the highest, 50 - the lowest). -srv-weight [0-50] Specifies relative weight of the SRV record among records with the same priority (0 - the lowest, 50 - the highest). -srv-port [0-65535] Specifies the port on which the service is to be found (for SRV record). -srv-target-host <host> Specifies canonical hostname of the machine providing the service (for SRV record). -srv-protocol TCP|UDP Specifies the service protocol for SRV record. -srv-service <service> Specifies symbolic name of the service for SRV record. -txt ''|<text> Specifies the TXT type resource record in a domain's DNS zone. Used with the --add and --del commands. Requires the -domain option if the record is created for a subdomain of a domain. To specify the TXT type DNS record "This record is used to implement the Senders Policy Framework and DKIM specifications" for the subdomain name sample in the DNS zone for the domain example.com: plesk bin dns -a example.com -txt "This record is used to implement the Senders Policy Framework and DKIM specifications" -domain sample -domain <subdomain_name> Specifies a subdomain name for creating a TXT or DS resource record in a domain's DNS zone. Used with the --add and --del commands only. -ds ''|"<key-tag> <algorithm> <digest-type> <digest>" Specifies the DS resource record in a domain's DNS zone. Used with the --add and --del commands. Requires the -domain option if the record is created for a subdomain or additional domain on a subscription. The information about the DS records that you need to add to the parent zone is available in Plesk UI in DNSSEC settings of a domain. To specify the DNS record of the DS type for the subdomain sample in the DNS zone of the domain example.com: plesk bin dns --add example.com -domain sample -ds "62181 10 2 6CBB33AB0260421C08968A4384AE38778FC88E740B660336A5CF7900 8F3AF9AD" -www true|false Enables/Disables support of the www-prefixed alias for a canonical domain name in a domain's DNS zone. Used with the --reset command only. Creates/Deletes a CNAME type resource record in the www.<domain_name> form. To enable support of the www-prefixed alias www.example.com (pointing to domain example.com) in the DNS zone on the domain example.com: plesk bin dns -res example.com -www true -ip 192.0.2.94 -primary <IP_address> Adds an IP address of a primary DNS server for a domain's DNS zone. Used with the --add --del and --reset commands only. To add the IP address 192.0.2.78 of the primary DNS server for DNS zone on the domain example.com: plesk bin dns -a example.com -primary 192.0.2.78 -soa-ttl <number>[S|M|H|D|W] Sets the TTL value for the SOA record of a domain' or domain alias' DNS zone. Used with the--update-soa command only. To set the TTL value to 5 hours, the Refresh value to 4 hours, the Retry value to 10 seconds, the Expire value to 2 weeks, and the Minimum value to 2 days for the SOA record in the DNS zone on the domain example.com: plesk bin dns --update-soa example.com -soa-ttl 5H -soa-refresh 4H -soa-retry 10S -soa-expire 2W -soa-minimum 2D -soa-refresh <number>[S|M|H|D|W] Sets the Refresh value for the SOA record of a domain' or domain alias' DNS zone. Used with the --update-soa command only. -soa-retry <number>[S|M|H|D|W] Sets the Retry value for the SOA record of a domain' or domain alias' DNS zone. Used with the --update-soa command only. -soa-expire <number>[S|M|H|D|W] Sets the Expire value for the SOA record of a domain' or domain alias' DNS zone. Used with the --update-soa command only. -soa-minimum <number>[S|M|H|D|W] Sets the Minimum value for the SOA record of a domain' or domain alias' DNS zone. Used with the --update-soa command only. -soa-serial-format timestamp|yyyymmddnn Specifies format of SOA record serial number: UNIX timestamp or recommended by IETF and RIPE. Used with the --update-soa command only. To change the SOA record serial format to recommended by IETF and RIPE for domain example.com: plesk bin dns --update-soa example.com -soa-serial-format yyyymmddnn -list "<record_1>;<record_2>;...<record_N>" where the <record> parameter is composed according to the following rules: for MX record: MX,<subdomain_name>,<mail_exchanger_name>,<priority> for NS record: NS,<subdomain_name>,<name_server_name> for A record: A,<subdomain_name>,<IP_address> for PTR record: PTR,<IP_address/subnet_mask>,<subdomain_name> for CNAME record: CNAME,<subdomain_name>,<canonical_domain_name> for TXT record: TXT,<subdomain_name>,<text> for DS record: DS,<subdomain_name>,<key-tag> <algorithm> <digest-type> <digest> For adding resource records of respective types individually, consult descriptions of the options in this table. Specifies resource records to be included in a domain's DNS zone. Used with the --set command only. To add the following two resource records to the DNS zone of the domain example.com, while removing all pre-existing resource records from the DNS zone: new MX resource record mail3.example.com specifying domain name mail.example.com as the mail exchanger for the record, and setting the mail exchanger's priority to 15: new NS resource record ns2.example.com setting domain ns.example.com as the name server: plesk bin dns -s example.com -list "MX,mail3,mail.example.com,15;NS,ns2,ns.example.com"

1 2 ... 4

Navigation

Where do you want to go?