Problem re-creating a deleted account - "a dns record already exists"

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
A customer accidently deleted an account from his WHM. Now, we can't re-add it.

It keeps telling us the "sorry, a dns record for xxxx.com" already exists. However, there is no zone file. I checked all servers in the cluster to make sure no zone file existed, I checked all of their named.conf files and they didn't have it either.

What else causes this error? I just can't get the account re-created....
 

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
A customer accidently deleted an account from his WHM. Now, we can't re-add it.

It keeps telling us the "sorry, a dns record for xxxx.com" already exists. However, there is no zone file. I checked all servers in the cluster to make sure no zone file existed, I checked all of their named.conf files and they didn't have it either.

What else causes this error? I just can't get the account re-created....

Well i have no idea what happened here, but luckily the server did do a backup, so I just restored it and used the "recreate" account from there....
 

niccell

Well-Known Member
Aug 10, 2005
46
0
156
Possible Solution

Hello!

I've seen this many times.... in WHM if you go to:

DNS Functions /Delete a DNS Zone

You will see the DNS Zone. Simply delete it.

For some oddball reason sometimes WHM leaves DNS Zones behind.

You may also want to make certain your clients cannot monkey with DNS zones. It's more issues than it is worth...

:)
 

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
Hello!

I've seen this many times.... in WHM if you go to:

DNS Functions /Delete a DNS Zone

You will see the DNS Zone. Simply delete it.

For some oddball reason sometimes WHM leaves DNS Zones behind.

You may also want to make certain your clients cannot monkey with DNS zones. It's more issues than it is worth...

:)

Ugh, this has happened again. It is not showing up in the 'delete a zone' section. In fact this time, I actually used that tool to delete the zone file so I could recreate it. It said it deleted it succesfully, now when I try to add the zone file again, it won't add, and gives the above error....
 

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
I could really use a solution to this problem. This seems to be happening on a regular basis with any old domains that might have been removed.

Through web host manager, delete dns zone, it is not listed
There is no zone file in the named.conf file on any of the servers in the cluster
There is no actual zone file in any of the servers
It is not in the localdomains file.

Where else does cpanel check that would give that error "a dns zone already exists"? I mean, it has to be checking somwhere?
 

soundguy

Well-Known Member
PartnerNOC
Oct 29, 2003
52
0
156
seattle
Where else does cpanel check that would give that error "a dns zone already exists"? I mean, it has to be checking somwhere?
Here's the list of files from cp10. Not sure if it's relevant to cp11:

/var/cpanel/users/
/var/named/
/etc/httpd/conf/httpd.conf
/etc/localdomains
/etc/userdomains
/etc/trueuserdomains
/etc/valiases/
/etc/vdomainaliases/
/etc/vfilters/
/etc/vfmail/

/etc/passwd
/etc/shadow
 
Last edited:

noimad1

Well-Known Member
Mar 27, 2003
626
0
166
Wow.....this is driving me crazy. I may just have to open a ticket.


I tried to run /fixsubconf - no help.

I removed all entires of the domain from all of those files, and it still doesn't work.....

I'm at a loss.