Paper Lantern for cPanel accounts is being retired this year. Find out more »
cPanel & WHM Version 102 has been released, and brings a slew of great updates. Take a look at what is included, and then upgrade today!

Add button to show/hide subdomains of addon domains

Unnamed User shared this idea 8 months ago
Not Planned

When a customer adds an addon domain to a cPanel account, you have to fill in the subdomain. This is necessary for cPanel to connect the addon domain to an account, which is fine. But this also creates a lot of subdomains in the DNS Zone for the main domain of the account.

There is a long running (4+ years) feature request to remove the requirement for a subdomain:

But since implementing this requires a lot of code refactoring, why not implement a work-around instead which should be quite easy. My suggestion is to add a button or a checkbox (either in WHM or cPanel, or make WHM set the account default and let user override via cPanel) to hide the addon domain's subdomains from the main domain's DNS zone. Just a simple check: if subdomain is connected to addon domain, then hide this row in the table. This should get rid of for example: http://www.addonsubdomain.maindomain.tld in the main domain's DNS zone. If a user modifies the addon domain record, it will internally also modify the connected subdomain. But I think this is already the case.

I think this will solve both this and the existing feature request. One of the first commenters (Sascha) in the existing feature request also briefly mentioned the option for hiding these unnecessary DNS records.

Bonus: also hide these subdomains from dropdown menu's in various places, like the e-mail account creation screen. Just show the addon domains and subdomains (subdomain.addondomain.tld) if they have them, but not (subdomain.)addondomain.maindomain.tld.

Replies (1)


This sounds like a great iteration. We already do this in the domains UI, duplicating this filter functionality on the Zone Editor would help eliminate a lot of superflous domains in view for folks. It's not currently on our radar to do, so I'm going to mark it Not Planned, but I will revisit this when we find a place for it in the roadmap.

Dustin Scherer (he/him) | Product Owner | @dustinscherer

Leave a Comment
Attach a file