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!

I Accidently Deleted a lot of DNS Zones from /var/named

Discussion in 'Bind/DNS/Nameserver' started by Dr. Bogger, Nov 6, 2008.

  1. Dr. Bogger

    Dr. Bogger Well-Known Member

    Joined:
    Dec 21, 2003
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    156
    I accidently deleted a bunch of DNS Zone .db files from /var/named... i tried to add them each back one by one, and in whm under "Add a DNS Zone", i get this error: "Sorry, that's an invalid domain"

    Anyone know how i can add the dns zones back in named?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. blkjck

    blkjck Well-Known Member

    Joined:
    Sep 17, 2003
    Messages:
    64
    Likes Received:
    0
    Trophy Points:
    156
    cpbackup makes a backup of var named if you have backup enabled.
    make sure group named has access to the files db files.
     
  3. silversurfer

    silversurfer Well-Known Member

    Joined:
    Dec 29, 2002
    Messages:
    274
    Likes Received:
    0
    Trophy Points:
    168
    Even if you deleted the zones from /var/named, the configuration will still have them. You would need to remove the corresponding zones from /etc/named.conf before readding.

    If you have local backups enabled, check

    PATH_TO_BACKUP/cpbackup/daily/daily/dirs/_var_named


    It should have all your zones. If backups have already updated, try weekly and so on.
     
  4. razvantutu

    razvantutu Registered

    Joined:
    Sep 13, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    51
    use /scripts/rebuildnsdzones
     
  5. Dr. Bogger

    Dr. Bogger Well-Known Member

    Joined:
    Dec 21, 2003
    Messages:
    95
    Likes Received:
    0
    Trophy Points:
    156
    i tried that, didnt work...
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  6. apscinsspl

    apscinsspl Well-Known Member

    Joined:
    Mar 15, 2008
    Messages:
    112
    Likes Received:
    0
    Trophy Points:
    66
    Delete its entry from /etc/named.conf also and then add it from WHM.

    Else from SSH create a db directly in /var/named

    Either ways should solve the problem
     
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