The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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

Discussion in 'Bind / DNS / Nameserver Issues' started by noimad1, Jun 12, 2007.

  1. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    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....
     
  2. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16

    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....
     
  3. niccell

    niccell Well-Known Member

    Joined:
    Aug 10, 2005
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    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...

    :)
     
  4. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16

    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....
     
  5. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    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?
     
  6. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try /scripts/fixsubconf

    with the latest builds
     
  7. soundguy

    soundguy Well-Known Member
    PartnerNOC

    Joined:
    Oct 29, 2003
    Messages:
    52
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    seattle
    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
     
    #7 soundguy, Jun 25, 2007
    Last edited: Jun 25, 2007
  8. noimad1

    noimad1 Well-Known Member

    Joined:
    Mar 27, 2003
    Messages:
    627
    Likes Received:
    0
    Trophy Points:
    16
    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.
     
Loading...

Share This Page