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.

script to rebuild zone file

Discussion in 'General Discussion' started by darklogic, Jun 22, 2005.

  1. darklogic

    darklogic Registered

    Joined:
    Jun 21, 2005
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    A client of mine has been having problems with customers creating subdomains in cpanel, and then later removing them by just deleting their root directory, leading to dead dns records.

    I'm working to produce a script that parses /var/cpanel/users and outputs a zone file for only the records that have matching vhosts in httpd.conf AND have an existing server root.

    Does anyone have any suggestions/ideas? I'll post the script in this thread when it is finished in case it is useful to somebody.

    Thanks!
     
  2. darklogic

    darklogic Registered

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

Share This Page