Removing Parked/Addon domains doesn't clean up entries?

ajaydsouza

Active Member
Apr 14, 2006
34
0
231
Hi,

I have had a cPanel account (username account1) with a host for over two years now, during which period I had added / removed a lot of parked and addon domains for many sites I had hosted during this period.

Only recently did I move the account to a new reseller account in its current state of one parked, one addon and two subdomains. (The host transferred the account for me using WHM)

Today when I was doing a bandwidth change for that account (account1), I realized that it still listed all these old parked / addon domains and their subdomains.

This was a huge list and since the account still controlled them, the bandwidth of few of these domains (which had their own account) were still be counted in this original account(account1).

How do I delete all these old entries for account1
 

jayh38

Well-Known Member
Mar 3, 2006
1,212
0
166
ajaydsouza said:
How do I do this exactly?
Since you state that you are a cpanel client, you would need to
contact your hosting service provider to fix that for you.
 

ajaydsouza

Active Member
Apr 14, 2006
34
0
231
jayh38 said:
Since you state that you are a cpanel client, you would need to
contact your hosting service provider to fix that for you.
I also run my own VPS. So which file would I need to edit?
 

angelina_holy

Well-Known Member
Aug 6, 2006
113
0
166
When you park a domain , a dns entry gets created for it in /var/named . You can try deleting the dns entry (dbrecord)

When you add a addon domain , a dns entry gets creared in /var/named and a subdomain gets created under a main domain in /home/user . you can remove the dns entry from /var/named also delete that subdomain from /home/user . Also you will need to remove the addon domain /etc/localdomains
 

ajaydsouza

Active Member
Apr 14, 2006
34
0
231
Thanks for the detailed explanation angelina_holy

Things are a lot clearer now about what goes where :)

Just one clarification, /home/user means the username correct?

Is that the only place where subdomain information is stored?

Or is subdomain record made in /var/named ?
 

Convergence

Member
Oct 8, 2006
7
0
151
Same problem...

Hi,

I'm having the same problem - I deleted, via cPanel, an add-on domain that had hundreds of sub-domains - but the sub-domains still appear (does not remove the file or directory that it displays), they also appear in the ftp accounts.

Any way to clean them up at one time, not just finding where each add-on domain is located and deleting them one at a time from MANY locations? Any way to do this from WHM?

Also, there appears to be some "ghost" accounts/domains - when logging into a cpanel account using the root password - in the list of accounts (where you can switch between account cpanels) there are accounts/domains that do not show up anywhere else? How does one get rid of these "ghost" accounts/domains?

Thanks!