BIND log all queries to a file



  • 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]



  • 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?


  • LAYER 8 Global Moderator

    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.



  • 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  :-\ :-\ :-\


Log in to reply