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.

can't restart DNS Server (BIND)

Discussion in 'Bind / DNS / Nameserver Issues' started by tomz2, Dec 4, 2007.

  1. tomz2

    tomz2 Member

    Joined:
    May 23, 2007
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Help Thanks can't restart DNS Server (BIND) i try all but not luck thanks


    i try this but say


    [root@server ~]# service named restart
    Stopping named: [FAILED]
    Starting named:
    Error in named configuration:
    /etc/named.conf:1: '{' expected near 'section'
    [FAILED]


    !! fixrndc requires a syntactically correct /etc/named.conf.
    !! No changes were made to /etc/named.conf. Problem was:
    !! /etc/named.conf:1: '{' expected near 'section'

    ...Done

    and this when i try to restart Bind from whm


    named has failed, please contact the sysadmin (result was "named is not running"). Dec 4 18:59:40 server named: /etc/named.conf:1: '{' expected near 'section'
     
  2. TheHeartSmasher

    TheHeartSmasher Active Member

    Joined:
    Jul 14, 2006
    Messages:
    28
    Likes Received:
    0
    Trophy Points:
    1
    Are you using this server to host the DNS entires for your hosted sites (server is also acting as nameserver, bad idea) or do you have the DNS entries elsewere (godaddy.com/etc.)

    If so uncheck monitor and enabled for the named service under service configuration->service manager. If your DNS entries are hosted elsewhere then disabling this should fix the problem. Well it fixed it for me, I received thousands of emails about the named service failing until I finally disabled it.
     
  3. rbalaji

    rbalaji Member

    Joined:
    Nov 27, 2007
    Messages:
    20
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Try this way:
    =========
    It seems like script(service named restart) was trying to find wrong named.
    So, you have to find the path of named by running "which" command in command line.

    ~]# which named
    /usr/sbin/named

    then you can compare the same with rc.conf file named entry whether the path of named is there. If not then put the entry

    named_program="/usr/sbin/named"

    sometimes it may be wrongly mentioned named_program="/usr/local/sbin/named" instead of named_program="/usr/sbin/named" in rc.conf file.

    another way:
    =========
    run this script.
    /scripts/fixnamed

    I hope you will get through it.



    Thanks:)
     
Loading...

Share This Page