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

Is there a way to view the dnsmasq cache from the GUI?

Scheduled Pinned Locked Moved DHCP and DNS
4 Posts 3 Posters 12.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.
  • S
    ssheikh
    last edited by Jan 15, 2009, 5:01 AM

    For that matter I can't find how to dump a list of cached entries from the shell either.

    1 Reply Last reply Reply Quote 0
    • K
      knjers
      last edited by Jan 20, 2009, 7:13 PM

      Was looking for this feature a few days ago. It obviously is not in the GUI.

      The strange thing is that the DHCP lease DNS registration does not appear anywhere, The DNS package didn't help much.

      1 Reply Last reply Reply Quote 0
      • D
        dotdash
        last edited by Jan 21, 2009, 8:00 PM

        From the notes on the manpage:
        When it receives a SIGUSR1, dnsmasq writes statistics to the system log. It writes the cache size, the number of names which have had to removed from the cache before they expired in order to make room for new names and the total number of names that have been inserted into the cache. For each upstream server it gives the number of queries sent, and the number which resulted in an error. In –no-daemon mode or when full logging is enabled (-q), a complete dump of the contents of the cache is made.

        To test, I sent a kill -s USR1 to the process:
        Jan 21 13:37:57 dnsmasq[29469]: time 1232566677
        Jan 21 13:37:57 dnsmasq[29469]: cache size 150, 0/475 cache insertions re-used unexpired cache entries.
        Jan 21 13:37:57 dnsmasq[29469]: queries forwarded 392, queries answered locally 16
        Jan 21 13:37:57 dnsmasq[29469]: server 208.67.222.222#53: queries sent 206, retried or failed 12
        Jan 21 13:37:57 dnsmasq[29469]: server 208.67.220.220#53: queries sent 210, retried or failed 6

        So, it appears -q would have to be passed to the dnsmasq startup to get a cache dump.

        You might be able to get the feature added with a small bounty, as it doesn't look that hard to add.

        1 Reply Last reply Reply Quote 0
        • K
          knjers
          last edited by Jan 21, 2009, 9:11 PM

          Thanks.

          With a few more options, like separate list of the internal DHCP leases registered in DNS, and per domain and/or time sorting would be very interesting.
          Will try to offer something in the near future, as soon as I finish other pressing issues around my network and pfSense.

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