Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Manually changing a DNS Zone

Discussion in 'Bind/DNS/Nameserver' started by grabacontroller, Nov 14, 2006.

  1. grabacontroller

    grabacontroller Registered

    Joined:
    Mar 24, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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.
     
  2. elliotcooper

    elliotcooper Well-Known Member
    PartnerNOC

    Joined:
    May 18, 2005
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    156
    The path to the zone file is as follows:

    /var/named
     
  3. JoelP

    JoelP Member

    Joined:
    Oct 2, 2005
    Messages:
    8
    Likes Received:
    0
    Trophy Points:
    151
    Make sure you increment the serial number when edit a zone file. It is the first number after the open parenthesis .
     
  4. grabacontroller

    grabacontroller Registered

    Joined:
    Mar 24, 2006
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    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.
     
  5. anushkumar

    anushkumar Well-Known Member

    Joined:
    May 14, 2005
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. anushkumar

    anushkumar Well-Known Member

    Joined:
    May 14, 2005
    Messages:
    57
    Likes Received:
    1
    Trophy Points:
    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
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice