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

    Unbound log

    Scheduled Pinned Locked Moved DHCP and DNS
    2 Posts 2 Posters 2.2k 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.
    • F
      fedesoundsystem
      last edited by

      Hi everyone,
      First of all, thank you so much for your effort taking care for such a good free project!
      Not fully pfSense related, but unbound.
      I would like to log the IP answered by unbound when queried.
      On the unbound documentation there are some options, like log-queries:, log-replies:, log-tag-queryreply: and they do log the source host that queried the domain, and the same host when returned the answer. As I can't find anything there, is that I would like to ask, is there some option to log the IP that was answered, within the answer log?
      Example: with that options that I mentioned, I can achieve the next, that is to log who queried what, but in the answer I can't get to log the google IP that was queried without increasing the log verbosity
      query: 192.168.2.10 www.google.com. A IN
      reply: 192.168.2.10 www.google.com. A IN NOERROR 0.068642 0 48
      I expect to see
      reply: 192.168.2.10 www.google.com. A IN NOERROR 0.068642 0 48 (172.217.172.68 or whatever IP google passed to me)
      Thank you again!

      1 Reply Last reply Reply Quote 0
      • GertjanG
        Gertjan
        last edited by

        Hi,

        Read https://nlnetlabs.nl/documentation/unbound/unbound.conf/
        and also, have a look at the pfSense unbound.conf in /var/unbound/

        The thing is - line 14 :

        use-syslog: yes
        

        which, according to the unbound manual, overrides settings like : logfile
        See, for example, here : https://snippets.khromov.se/enable-logging-of-dns-queries-in-unbound-dns-resolver/ - the usage of "logfile".

        So everything will get send to the syslog, and wind up in the circular 'resolver.log' file.

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.