//logging configuration
logging{

  // Configuration file parsing and processing.

  channel "config" {
        file "/var/log/named/config.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Processing of client requests.

  channel "client" {
        file "/var/log/named/client.log" versions 4 size 2m;
        severity notice;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Messages relating to the databases used internally by the
  // name server to store zone and cache data.

  channel "database" {
        file "/var/log/named/database.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // The default category defines the logging options for those
  // categories where no specific configuration has been defined.

  channel "default" {
        file "/var/log/named/default.log" versions 8 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Delegation only. Logs queries that have have been forced
  // to NXDOMAIN as the result of a delegation-only zone or a
  // delegation-only in a hint or stub zone declaration.

  channel "delegation-only" {
        file "/var/log/named/delegation-only.log" versions 8 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

 // Dispatching of incoming packets to the server modules where
  // they are to be processed.

  channel "dispatch" {
        file "/var/log/named/dispatch.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // DNSSEC and TSIG protocol processing.

  channel "dnssec" {
        file "/var/log/named/dnssec.log" versions 8 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Lame servers. These are misconfigurations in remote servers,
  // discovered by BIND 9 when trying to query those servers
  // during resolution.

  channel "lame-servers" {
        file "/var/log/named/lame-servers.log" versions 16 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

channel "network" {
        file "/var/log/named/network.log" versions 2 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Specify where queries should be logged to.

  channel "queries" {
        file "/var/log/named/queries.log" versions 16 size 10m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

 // DNS resolution, such as the recursive lookups performed on
  // behalf of clients by a caching name server.

  channel "resolver" {
        file "/var/log/named/resolver.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Approval and denial of requests.

  channel "security" {
        file "/var/log/named/security.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  // Messages that named was unable to determine the class of or
  // for which there was no matching view.

  channel "unmatched" {
        file "/var/log/named/unmatched.log" versions 4 size 2m;
        severity info;
        print-severity no;
        print-time yes;
        print-category yes;
  };

  category "database" { "database"; };
  category "default" { "default"; };
  category "delegation-only" { "delegation-only"; };
  category "dispatch" { "dispatch"; };
  category "dnssec" { "dnssec"; };
  category "lame-servers" { "lame-servers"; };
  category "network" { "network"; };
  category "queries" { "queries"; };
  category "resolver" { "resolver"; };
  category "security" { "security"; };
  category "unmatched" { "unmatched"; };

};