Syntax error on bind 8 named.conf file

Barry Margolin barmar at genuity.net
Thu May 4 19:23:14 UTC 2000


In article <8es3pe$2nh$1 at nnrp1.deja.com>,
Stefan Wills  <stefan4096 at my-deja.com> wrote:
>I get the following message when I reload DNS (Bind 8.8.2-P5 on Solaris
>2.6)
>********************************************************
>May  4 02:34:52 protector named[14925]: starting.  named 8.2.2-P5 Sat
>Apr 29 13:03:11 EDT 2000
>May  4 02:34:52 protector       root at protector:/tmp/src/bin/named
>May  4 02:34:53 protector named[14925]: /usr/local/etc/named.conf:158:
>syntax error near channel
>May  4 02:34:53 protector named[14926]: Ready to answer queries.
>*********************************************************
>This is the section that give me the error:
>
>*********************************************************
>zone "86.150.150.IN-ADDR.ARPA" {
>        type slave;
>        file "sec/sec.150.150.86";
>        masters { 150.150.12.90; };
>};
>//
>// Logging channels
>// Specifies the information the server logs and the destination of log
>messages
>//
>channel default_syslog {
>        syslog daemon;          //send to syslog's daemon facility
>        severity info;          // only priority info and higher
>                                // possible syslog channels: kern user
>mail daemon auth
>                                // syslog lpr news uucp cron authpriv
>ftp local0 - local7
>};
>
>channel default_debug {
>        file "named.run";       //write to named.run in the
>                                // working directory
>        severity dynamic;       // log at the server's current debug
>level
>};
>*********************************************************
>Line 151 is the "syslog daemon;" in the the first channel definition.
>I am unable to see what the error is.  It appears probably to be one
>ofe the lines prior as when I comment out this section the error then
>goes to line 158 which is the line following "channel default_debug ..."

The "channel" statement has to be inside a "logging" statement, i.e. it
should be:

logging { 
  channel default_syslog {
    ...
  };
  channel default_debug {
    ...
  };
  ...
};

It looks like you have the channel statement at the top-level of your
named.conf file, which is incorrect.

-- 
Barry Margolin, barmar at genuity.net
Genuity, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list