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.

I deleted a Zone from WHM but when I try to Add again it shows Error.

Discussion in 'EasyApache' started by Rizwan Ghzzaal, Sep 7, 2015.

  1. Rizwan Ghzzaal

    Joined:
    Jul 22, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Hi,
    I deleted a DNS zone from the server but when I tried to add is back I get an error which is as follows
    The domain bleongs to username ......
    WHat is the issue? Please help.....

    Also that zone does not exists anymore.
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Are you sure the DNS zone was successfully deleted? Try removing it again via a command such as:

    Code:
    /scripts/killdns $domain.com
    Then, check to see if a DNS= entry for this domain name exists in the /var/cpanel/users/$username file of the username it's listed as belonging to.

    Thank you.
     
  3. Rizwan Ghzzaal

    Joined:
    Jul 22, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    Thanks for the Reply, But the domain is added in the hosting But there is no zone of the domain in WHM I think I deleted it. Where as in /var/cpanel/users/khalidre it shows as follows:
    ===================================================================================
    [Removed Actual Domains]
    ===================================================================================
    where [Removed Actual Domains] is the domain whos zone I want to create.

    With the following code it shows unable to delete zone as it is already removed.
    /scripts/killdns $domain.com
     
    #3 Rizwan Ghzzaal, Sep 8, 2015
    Last edited by a moderator: Sep 8, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    I suggest adding the zone back in via:

    "WHM Home » DNS Functions » Add a DNS Zone"

    Ensure you select the username associated with the account it's added to. Then, instead of manually deleting the zone, delete the domain name as an addon/parked domain name from the account itself through cPanel.

    Thank you.
     
  5. Rizwan Ghzzaal

    Joined:
    Jul 22, 2015
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    Location:
    Lahore
    cPanel Access Level:
    Root Administrator
    I re-added the domain it worked perfectly thanks Michael for your reply.
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
Loading...
Similar Threads - deleted Zone WHM
  1. net@work
    Replies:
    1
    Views:
    122
  2. jmginer
    Replies:
    1
    Views:
    392

Share This Page