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.

Named broken

Discussion in 'General Discussion' started by Mini, Oct 1, 2008.

  1. Mini

    Mini Well-Known Member

    Joined:
    Mar 4, 2005
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Hi all,

    I accidently ran "Nameserver Setup" in WHM and my named is broken. How would I fix it?

    root@host [/etc]# /etc/init.d/named restart
    Stopping named: [ OK ]
    Starting named:
    Error in named configuration:
    none:0: open: /etc/named.conf: file not found
    [FAILED]

    And, the named.conf file DOES exist, so I don't know why it's doing this.

    If anyone could help me that that'd be great.

    Thanks

    root@host [/etc]# /scripts/restartsrv named
    Waiting for named to restart..............finished.


    named has failed, please contact the sysadmin (result was "named is not running").
    Oct 2 12:15:16 host named: none:0: open: /etc/named.conf: file not found
     
  2. Mini

    Mini Well-Known Member

    Joined:
    Mar 4, 2005
    Messages:
    98
    Likes Received:
    0
    Trophy Points:
    6
    Also he's a log if it helps.

    Thanks if you can help me, I'm pretty desperate :(

    root@host [/etc]# tail /var/log/messages
    Oct 2 12:09:40 host named: none:0: open: /etc/named.conf: file not found
    Oct 2 12:14:13 host named: none:0: open: /etc/named.conf: file not found
    Oct 2 12:15:16 host named: none:0: open: /etc/named.conf: file not found
    Oct 2 12:17:32 host pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
    Oct 2 12:17:32 host pure-ftpd: (?@127.0.0.1) [INFO] Logout.
    Oct 2 12:17:33 host named: none:0: open: /etc/named.conf: file not found
    Oct 2 12:20:15 host named: none:0: open: /etc/named.conf: file not found
    Oct 2 12:25:55 host pure-ftpd: (?@127.0.0.1) [INFO] New connection from 127.0.0.1
    Oct 2 12:25:55 host pure-ftpd: (?@127.0.0.1) [INFO] Logout.
    Oct 2 12:25:56 host named: none:0: open: /etc/named.conf: file not found
     
  3. cPanelNick

    cPanelNick Administrator
    Staff Member

    Joined:
    Mar 9, 2015
    Messages:
    3,426
    Likes Received:
    2
    Trophy Points:
    38
    cPanel Access Level:
    DataCenter Provider
    Try

    /scripts/rebuildnamedconf

    if that doesn't work

    Try

    /scripts/rebuildnamedconf --force

    if that doesn't work, please open a support request.
     
  4. Humayun

    Humayun Member

    Joined:
    Jul 15, 2008
    Messages:
    21
    Likes Received:
    0
    Trophy Points:
    1
    Yaseen

    Hello :),

    Please do this to resolve this issue
    ------------------
    --> cp -r /etc/named.conf /etc/named.conf.bk
    --> rm -rf /etc/named.conf
    --> /scripts/rebuildnamed --force
    --> service named restart
    ------------------
    Issue should be fixed then.

    Regards:D,




     
Loading...

Share This Page