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.

Case of the missing DOMAIN

Discussion in 'General Discussion' started by brendanrtg, Oct 28, 2006.

  1. brendanrtg

    brendanrtg Well-Known Member

    Joined:
    Oct 4, 2006
    Messages:
    311
    Likes Received:
    0
    Trophy Points:
    16
    I accidentally deleted a zone for a user and without losing data, I need to add it back.

    Please advise as to what files I need to edit as ROOT under SSH to make it appear again.

    Thank you.
     
  2. brianoz

    brianoz Well-Known Member

    Joined:
    Mar 13, 2004
    Messages:
    1,146
    Likes Received:
    6
    Trophy Points:
    38
    Location:
    Melbourne, Australia
    cPanel Access Level:
    Root Administrator
    The file missing would be /var/named/domain.com.db. You should be able to find it in your last Cpanel backup.

    If you can't find it, copy a zone file from another domain that works, say workingdomain.com, like this:

    Code:
    cd /var/named
    cp workingdomain.com.db domain.com.db
    replace workingdomain.com domain.com -- domain.com.db
    then you have to edit the file /etc/named.boot and add a line sequence to the end for your domain. It will be completely obvious what's needed when you see the file. Then restart named with "rndc reload" and check /var/log/messages for error messages. If you get it right, you'll see your domain.
     
Loading...

Share This Page