Skip to main content
We are aware of an issue after updating to cPanel versions 11.110.0.65, 11.126.0.21, or 11.128.0.11, some cPanel plugins or features are no longer functioning properly including WP Toolkit. Please see the following article for more information and updates:
Update to latest cPanel 110, 126, or 128 versions removes "addonfeatures" directory.

Disable select service subdomains

Comments

6 comments

  • cPanelLauren
    Hello, You can disable service subdomains on existing domains by running the following via SSH: /scripts/servicedomains remove
    To keep them from being created on new accounts you can go to WHM>>Server Configuration>>Tweak Settings and select "Off" for Service subdomains.
    0
  • LotusBlossom
    Thank you for the help Lauren. I am trying to turn off only the automatic creation of dns records for whm, webdisk, cpcontacts, and cpcalendars from being created. I don't want to disable the setting for "Service subdomains" as that completely disables the use of cpanel.example.com and webmail.example.com which my clients use regularly. Also, I want to disable the automatic creation of "Service subdomains" DNS records for newly made subdomains, I have no need for them. But I need to retain the service subdomains of cpanel and webmail for the main domains. Is that possible?
    0
  • cPanelLauren
    So turning service subdomains off will keep them from being autocreated and also remove them from existing domains. The fix for that being, you can run the /scripts/servicedomains
    script from the command line to add servicedomains to accounts you would like them on individually with the service domains setting off.
    0
  • Whitebeard
    When you create a subdomain this way, it will be populated to the internal DNS server, but it won't show up under AutoSSL. The option Service Subdomains under Tweak Settings create all the service subdomains, even the ones I don't want to be created. CPanel and webmail are highly appreciated though. Of course I can create subdomains under domain settings (domainfqdn/cpanel or domainfqdn/webmail) but they will register as a seperate domain for AutoSSL and thus won't be covered by the domain certificate.
    0
  • aria_opensource
    I want to disable "Service subdomains" option of tweak settings from command line. when i run both bellow command. # /scripts/servicedomains remove --ifenabled Removing service subdomains for all users. This may take several minutes if there are many accounts on the system. # /scripts/servicedomains remove Removing service subdomains for all users. This may take several minutes if there are many accounts on the system. how can i disable or remove Service subdomains from command line
    0
  • cPRex Jurassic Moderator
    @aria_opensource - if you run the command without any options you'll see the help file, and that explains what flags are available for the /scripts/servicedomains command: [root@host /]# /scripts/servicedomains Usage: servicedomains [action] [options] Options: --help Brief help message --man Full help message --user= User to configure --domain= Domain to configure --subdomain= Service subdomain to manipulate --no_replace=0 Enable replacment of existing records (currently only used for changing autodiscover hosts) --old_autodiscover_host= The previously configured autodiscover host (used for matching old records and updating them to the new host) --force_autodiscover_support=1 Behave as if the autodiscover support has not been disabled even if it has. This is useful for removing the autodiscovery service subdomains after the support for them has been disabled. --ifenabled Only perform the operation if service subdomains are enabled. Actions: add Create service subdomains remove Remove service subdomains
    0

Please sign in to leave a comment.