Skip to main content

Manually remove DNS zone

Comments

8 comments

  • 24x7server
    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.
    0
  • KeB
    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.
    0
  • cPanelMichael
    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.

    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.
    0
  • KeB
    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.
    0
  • cPanelMichael
    Are you using a DNS cluster on this system? Do you see any other zones when accessing "WHM >> Delete a DNS Zone"? Thank you.
    0
  • KeB
    No, cluster. As I said, I can't login via WHM as it redirects me to the new server.
    0
  • cPanelMichael
    As I said, I can't login via WHM as it redirects me to the new server.

    You could access WHM using the IP address and port number in the URL. For example:
    https://old-server-ip:2087
    Thank you.
    0

Please sign in to leave a comment.