Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8427823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T04:53:05+00:00 2026-06-10T04:53:05+00:00

I am trying to find the perfect logging clause in named.conf that would help

  • 0

I am trying to find the perfect logging clause in named.conf that would help me enable full-level logs for named service. Can someone give an example here? My current clause is given below, but this generates very minimal logs.

 logging {
     channel querylog{
             file "/var/log/querylog";
             severity debug 10;
             print-category yes;
             print-time yes;
             print-severity yes;
             };
     category queries { querylog;};
 };
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T04:53:07+00:00Added an answer on June 10, 2026 at 4:53 am

    I usually expand each log out into its own channel and then to a separate log file, certainly makes things easier when you are trying to debug specific issues. So my logging section looks like the following:

    logging {
        channel default_file {
            file "/var/log/named/default.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel general_file {
            file "/var/log/named/general.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel database_file {
            file "/var/log/named/database.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel security_file {
            file "/var/log/named/security.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel config_file {
            file "/var/log/named/config.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel resolver_file {
            file "/var/log/named/resolver.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel xfer-in_file {
            file "/var/log/named/xfer-in.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel xfer-out_file {
            file "/var/log/named/xfer-out.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel notify_file {
            file "/var/log/named/notify.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel client_file {
            file "/var/log/named/client.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel unmatched_file {
            file "/var/log/named/unmatched.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel queries_file {
            file "/var/log/named/queries.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel network_file {
            file "/var/log/named/network.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel update_file {
            file "/var/log/named/update.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel dispatch_file {
            file "/var/log/named/dispatch.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel dnssec_file {
            file "/var/log/named/dnssec.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
        channel lame-servers_file {
            file "/var/log/named/lame-servers.log" versions 3 size 5m;
            severity dynamic;
            print-time yes;
        };
    
        category default { default_file; };
        category general { general_file; };
        category database { database_file; };
        category security { security_file; };
        category config { config_file; };
        category resolver { resolver_file; };
        category xfer-in { xfer-in_file; };
        category xfer-out { xfer-out_file; };
        category notify { notify_file; };
        category client { client_file; };
        category unmatched { unmatched_file; };
        category queries { queries_file; };
        category network { network_file; };
        category update { update_file; };
        category dispatch { dispatch_file; };
        category dnssec { dnssec_file; };
        category lame-servers { lame-servers_file; };
    };
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've been trying to find the perfect php framework for me that integrates with
Trying to find an example that has css rollover using sprites & sliding door
While trying to find an answer to Android Jasper Reporting I found out that
I am trying to find the perfect way to handle this exception and force
Trying to find a standard. The CmdLet will process data - multiple input, defined
Trying to find a way to remove blank pages from a document I wrote
Trying to find out if it's possible to use SQLAlchemy on Heroku. Thanks.
Trying to find the best way of create an overlap/overlay layer to fill the
Trying to find a good name for a method swapping each coordinate X and
Trying to find a way to send a POST HTTPS request from Python to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.