grabacontroller

Registered
Mar 24, 2006
4
0
151
I don't know who knows this but how do you edit, add, and delete a dns zone manually without using WHM to do it. I'm on a VPS and I want to delete the entries with Virtuazzo as root. I want to know the path and file of the zone file for it. Thank you very much.
 

JoelP

Member
Oct 2, 2005
8
0
151
Make sure you increment the serial number when edit a zone file. It is the first number after the open parenthesis .
 

grabacontroller

Registered
Mar 24, 2006
4
0
151
Here is what it says. Of course, I don't have an account anywhere with grabyourhosting.com

Sorry, a DNS entry for grabyourhosting.com already exists, please delete it first (from all servers in the dns cluster)

Code:
; Modified by Web Host Manager
; Zone File for grabyourhosting.com
$TTL 14400
@	86400	IN	SOA	ns1.grabyourhosting.com.	grabacontroller.gmail.com.	(
					2006111202
					86400
					7200
					3600000
					86400
					)

grabyourhosting.com.	86400	IN	NS	ns1.grabyourhosting.com.
grabyourhosting.com.	86400	IN	NS	ns2.grabyourhosting.com.

ns1.grabyourhosting.com.	14400	IN	A	72.249.12.101
ns2.grabyourhosting.com.	14400	IN	A	72.249.12.102

grabyourhosting.com.	14400	IN	A	72.249.12.100

localhost.grabyourhosting.com.	14400	IN	A	127.0.0.1

grabyourhosting.com.	14400	IN	MX	0	grabyourhosting.com.

mail	14400	IN	CNAME	grabyourhosting.com.
www	14400	IN	CNAME	grabyourhosting.com.
ftp	14400	IN	A	72.249.12.100
Is there a list that shows all the zone files? How would you edit the files or would you have to do everything with SSH? Thanks.
 

anushkumar

Well-Known Member
May 14, 2005
57
1
158
cPanel Access Level
Root Administrator
Hmmm.. I am not sure why everybody lets this incomplete...

If you want to add a DNS zone to your cpanel server :

1) cd /etc/named.conf and add the entry for that domainname
2) touch /var/named/domainname.com.db
3) create the entries there and don forget to increase the serial number for each domain.
 

anushkumar

Well-Known Member
May 14, 2005
57
1
158
cPanel Access Level
Root Administrator
login to SSH and remove /var/named/grabyourhosting.com.db and edit /etc/named.conf and remove the entries for the domain grabyourhosting.com from there too

Try to add the domain again through WHM