KeB

Member
Feb 22, 2010
22
0
51
How do I manually remove a DNS zone, i can't seem to find any entries.
 

24x7server

Well-Known Member
Apr 17, 2013
1,911
96
78
India
cPanel Access Level
Root Administrator
Twitter
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

KeB

Member
Feb 22, 2010
22
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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.
 

KeB

Member
Feb 22, 2010
22
0
51
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.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
Are you using a DNS cluster on this system? Do you see any other zones when accessing "WHM >> Delete a DNS Zone"?

Thank you.
 

KeB

Member
Feb 22, 2010
22
0
51
No, cluster.

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

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,910
2,213
363
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:

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