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.

Manually remove DNS zone

Discussion in 'Bind / DNS / Nameserver Issues' started by KeB, Jul 31, 2016.

Tags:
  1. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    How do I manually remove a DNS zone, i can't seem to find any entries.
     
  2. 24x7server

    24x7server Well-Known Member

    Joined:
    Apr 17, 2013
    Messages:
    1,146
    Likes Received:
    34
    Trophy Points:
    48
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Hello :),

    Can you please let me know which entry you want to removed from your DNS zone?

    If you want remove DNS zone then you need to remove DNZ zone file from /va/named directory and remove DNS zone entry from /etc/named.conf file.
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello,

    First, try deleting the zone through the Delete a DNS Zone option under "WHM >> DNS Functions". Check to see if the zone exists under the /var/named directory if you don't see it listed in this interface.

    Thank you.
     
  4. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    I have moved my VPS to another provider, I can't login to my old VPS via WHM as it redirects me to me new VPS.

    I am pretty sure there is a hostname dns entry with the IP address of the new server but I can't delete it via WHM.
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Are you able to access this server via SSH as "root" to manually review the zone in the /var/named directory? Or, have you checked to see if the "A" entry for the hostname is added into the zone of the domain name it's associated with?

    Thank you.
     
  6. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    Yes, I can do that, I get this.......

    total 68
    drwxr-xr-x 6 named named 4096 Aug 1 19:37 ./
    drwxr-xr-x 23 root root 4096 Aug 1 19:38 ../
    drwx------ 2 root root 4096 Jul 31 02:16 cache/
    drwxrwx--- 2 named named 4096 May 11 00:07 data/
    drwxrwx--- 2 named named 4096 May 11 00:07 dynamic/
    -rw-r--r-- 1 named named 198 Dec 8 2006 localdomain.zone
    -rw-r--r-- 1 named named 195 Dec 8 2006 localhost.zone
    -rw-r--r-- 1 named named 427 Dec 8 2006 named.broadcast
    -rw-r----- 1 root named 3171 Jan 11 2016 named.ca
    -rw-r----- 1 root named 152 Dec 15 2009 named.empty
    -rw-r--r-- 1 named named 424 Dec 8 2006 named.ip6.local
    -rw-r--r-- 1 named named 426 Dec 8 2006 named.local
    -rw-r----- 1 root named 152 Jun 21 2007 named.localhost
    -rw-r----- 1 root named 168 Dec 15 2009 named.loopback
    -rw-r--r-- 1 named named 775 Aug 3 2013 named.rfc1912.zones
    -rw-r--r-- 1 named named 427 Dec 8 2006 named.zero
    drwxrwx--- 2 named named 4096 May 11 00:07 slaves/


    It is not listed there.
     
  7. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
  8. KeB

    KeB Member

    Joined:
    Feb 22, 2010
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    1
    No, cluster.

    As I said, I can't login via WHM as it redirects me to the new server.
     
  9. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,814
    Likes Received:
    672
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You could access WHM using the IP address and port number in the URL. For example:

    Code:
    https://old-server-ip:2087
    Thank you.
     
Loading...

Share This Page