The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

rebuild named

Discussion in 'General Discussion' started by hostcompany, Jul 21, 2009.

  1. hostcompany

    hostcompany Registered

    Joined:
    Jun 1, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Hi
    I have googled and search the forums but can't find a solution for this one.

    I have a lot of old domains in my /var/named directory and also we have made a number of changes to the domain template and would like to apply that to all domains.

    I have tried running /scripts/cleandns and /scripts/builddnsconf
    but all the old domains stayed there.

    I then deleted the contents of /var/named and ran builddnsconf
    but it has just created the basics and not the actual domains that do exist. (I do have a backup)

    Is there a script I can run that will re-create all the /var/named files?

    Regards
    Anthony
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I'm not aware of one, I think you'll have to modify each zone manually. There are tools to rebuild named.conf, but not to rebuild the actual zone files.

    I wondered if you switched to NSD, emptied /var/named and then switched back to BIND whether it would work, but NSD uses the same zone files in /var/named/.
     
  3. hostcompany

    hostcompany Registered

    Joined:
    Jun 1, 2007
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
Loading...

Share This Page