Databáze řešení
The servicedomains Script Tisknout tento článek
Overview:
The /usr/local/cpanel/scripts/servicedomains script allows you to create Domain Name System (DNS) records for service subdomains. The script adds the required DNS records for the subdomains to the main domain’s records. However, it doesn’t create a VirtualHost entry in the /usr/local/apache/conf/httpd.conf
file.
For more information about service subdomains, read our Service and Proxy Subdomains documentation.
Run the /scripts/servicedomains
script
To run this script on the command line, use the following format:
/usr/local/cpanel/scripts/servicedomains [action] [options]
Actions
You must use one of the following actions:
Action | Description |
---|---|
add |
Create DNS records for a service subdomain. |
remove |
Remove DNS records for a service subdomain. |
Options
Use the following options with this script:
Option | Description | Example |
---|---|---|
--user |
The account for which to configure the user’s domains. If you don’t use this, the system adds or removes records for all service subdomains. |
--user=john |
--domain |
The domain to configure. If you don’t use this but do specify a user, the system adds or removes records for that user’s service subdomains. |
--domain=example.com |
--subdomain |
The service subdomain to configure.
Note:
You cannot add the
cpanel , whm , or webmail service subdomains for addon or parked domains (aliases). |
--subdomain=webdisk |
--no_replace |
Whether to replace any existing DNS records.
For more information about Autodiscover and service subdomains, read the Additional records section below. |
--no_replace=0 |
--old_autodiscover_host |
The previously-configured autodiscover service subdomain.For more information about Autodiscover and service subdomains, read the Additional records section below. |
--old_autodiscover_host=autodiscover.example.com |
--force_autodiscover_support |
Whether the script should run as if you enabled Autodiscover support (even if you disabled it).
For more information about Autodiscover and service subdomains, read the Additional records section below. |
--force_autodiscover_support=1 |
ifenabled |
Only run the script if service subdomains are enabled. For more information on enabling service subdomains, read our Service and Proxy Subdomains documentation. |
--ifenabled |
Example
For example, to add the webdisk.example.com
service subdomain for the john
account, run the following command:
/usr/local/cpanel/scripts/servicedomains add --user=john --subdomain=webdisk --no_replace=0 --force_autodiscover_support=1 --ifenabled
This example returns the following output:
Adding service subdomains for user john.
Additional records
This script adds more DNS record entries if you enable Autodiscover and AutoConfig support. For more information about enabling them, read our Service and Proxy Subdomains documentation.
When Autodiscover and AutoConfig support is enabled, the script adds the following records:
Record type | Entry |
---|---|
A records |
|
SRV and TXT records |
|
SRV records |
_autodiscover._tcp |
Byla tato odpověď nápomocná?
Související články
Overview: The cPanel & WHM installation process adds important scripts to your server’s...
Overview: You can use the /usr/local/cpanel/bin/dbmaptool script to grant ownership of databases...
Overview: This script allows you to manage the task queue system. The task queue system allows...
Overview: The /usr/local/cpanel/scripts/auto-adjust-mysql-limits script updates MySQL®...
Overview: The /usr/local/cpanel/bin/autossl_check script allows you to manually check the SSL...