1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

problem starting dns

Discussion in 'Plesk for Linux - 8.x and Older' started by dfutura, Jul 28, 2005.

  1. dfutura

    dfutura Basic Pleskian

    23
    57%
    Joined:
    May 10, 2004
    Messages:
    30
    Likes Received:
    0
    when i stop,staro or restart dns i have this problem:

    /etc/init.d/named restart
    Parando named: rndc: connect failed: connection refused
    [FAIL]



    /etc/messages->
    Jul 28 18:52:18 bcl00761 named[4887]: starting BIND 9.2.1 -u named -c /etc/named.conf -u named -t /var/named/run-root
    Jul 28 18:52:18 bcl00761 named[4887]: using 1 CPU
    Jul 28 18:52:18 bcl00761 named[4887]: loading configuration from '/etc/named.conf'
    Jul 28 18:52:18 bcl00761 named[4887]: /etc/named.conf:303: expected quoted string near '/'
    Jul 28 18:52:18 bcl00761 named[4887]: loading configuration: unexpected token

    /etc/named.conf ->
    297 zone "22.151.62.in-addr.arpa" {
    298 type master;
    299 file "22.151.62.in-addr.arpa";
    300 allow-transfer {
    301 common-allow-transfer;
    302 };
    303 };
    304 acl common-allow-transfer {
    305 none;
    306 };
     
  2. hardweb

    hardweb Guest

    0
     
    Remove the line 303 and it will be ok!
     
  3. dfutura

    dfutura Basic Pleskian

    23
    57%
    Joined:
    May 10, 2004
    Messages:
    30
    Likes Received:
    0
    I try to remove this line, but it still dont restart
     
  4. jamesyeeoc

    jamesyeeoc Guest

    0
     
    Put that line 303 back in the file.

    From what you posted, line 303 is not the actual problem. The problem probably lies somewhere else in the file and the error is mis-reporting 303 as the line number.

    Have you verified that there are no ^M characters in the named.conf file? Do a:

    cat -A /var/named/run-root/etc/named.conf

    and see if you find any ^M chars at the end of any line. If you do, then do:

    dos2unix /var/named/run-root/etc/named.conf

    and try restarting named again.

    Another thing you can do is search in the named.conf file for any place which contains the '/' character, since that is what the error message is saying the problem is near.

    For example, if you installed a previous version of PSA PowerToys, it inserts a line:

    include "/etc/psaptzone.files";

    but some versions forgot to put the quote marks around it, which caused named to fail on loading.
     
  5. dfutura

    dfutura Basic Pleskian

    23
    57%
    Joined:
    May 10, 2004
    Messages:
    30
    Likes Received:
    0
    Thanks jamesyeeoc,

    The problem is the quote marks after installing PowerToys .
     
  6. are_eye_see_kay

    are_eye_see_kay Guest

    0
     
    James,
    you saved my bacon here.
     
Loading...