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

    How to maximize cache performance in Unbound DNS

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 666 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.
    • E
      ensnare
      last edited by

      Running DNS Resolver (unbound) in my home lab, and I'm trying to figure out how to maximize the cache performance (minimize latency) for queries from local machines.

      No matter what I adjust, there doesn't seem to be any impact on cache and reduction in latency. I am testing with namebench from a client machine. Even on repeat runs of namebench, the latency is the same -- shouldn't the cache be kicking in more?

      I've tried switching to forwarding mode to improve response times without any change. I've also tried disabling DNSSEC and DNS over TLS -- no change.

      Here are the latest settings. Any suggestions? Note: the DNS performance is fine, but this is a homelab and I'd like to optimize: at least beat the latencies of the forwarding servers for more of the cached queries.

      Here's a latency curve taken on run #3

      Screen Shot 2021-02-15 at 9.35.52 AM.png

      Screen Shot 2021-02-15 at 9.34.54 AM.png

      Screen Shot 2021-02-15 at 9.35.10 AM.png

      Screen Shot 2021-02-15 at 9.35.27 AM.png

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