• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

BIND log all queries to a file

Scheduled Pinned Locked Moved DHCP and DNS
4 Posts 2 Posters 1.5k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T
    tonysud
    last edited by Oct 7, 2017, 7:38 PM

    I'd like to know how to set up bind in pfsense to log all queries on a text file

    I don't understad how to pass configuration like this:

    https://stackoverflow.com/questions/11153958/how-to-enable-named-bind-dns-full-logging[

    logging {

    channel querylog{

    file "/var/log/querylog";
                        severity debug 10;
                        print-category yes;
                        print-time yes;
                        print-severity yes;
                        };

    category queries { querylog;}; };

    [/quote]

    1 Reply Last reply Reply Quote 0
    • T
      tonysud
      last edited by Oct 21, 2017, 9:30 AM

      I have manually edited named.conf and now it's working fine

      but I don't understand: how to avoid pfsense to overwrite named.conf I have manually modified?

      1 Reply Last reply Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Oct 21, 2017, 10:11 AM

        You would put the options you want in the custom options part of the gui.. This way they are saved in the xml and any updates and such to pfsense these changes are maintained.

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • T
          tonysud
          last edited by Oct 21, 2017, 10:45 AM

          In the GUI I have disabled  the logging checkbox, and in the named.conf I see this line:

          logging { category default { null; }; };

          If I add my custom options, lines are added to named.conf but last lines is always

          logging { category default { null; }; };

          and named fails to restart

          I don't understand how to force PFSENSE to add only my lines and not add its line at the end  :-\ :-\ :-\

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
            This community forum collects and processes your personal information.
            consent.not_received