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

DNS cache not working?

Scheduled Pinned Locked Moved DHCP and DNS
3 Posts 2 Posters 1.4k 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.
  • P
    Paul47
    last edited by Apr 6, 2013, 2:00 AM Apr 6, 2013, 1:57 AM

    I was trying to see if the DNS forwarder would shorten the turn-around time on DNS resolution, so I turned on the forwarder and set my DNS to look at the opendns servers (and unchecked the overwrite). Then I did a Diagnostics>DNSLookup to google.com, etc.

    The first time 127.0.0.1 took 95ms or so but the second time it went to zero, which suggests the cache is working. But if I go back a few minutes later the lookup is back to 95ms or whatever, as if the cache is cleared right away. Seems like the cache should hang around longer than a few minutes.

    I am running 2.1 beta i386, the 03/31 snapshot.

    <later>Oh, one other thing. Is there some way to look at the cached values in tabular form? I looked around but couldn't find anything…</later>

    1 Reply Last reply Reply Quote 0
    • C
      cmb
      last edited by Apr 6, 2013, 2:25 AM

      The cache is retained for the length of the TTL of the hostname you're looking up. That'll be anywhere from 1 second to 1 day depending. Google is 5 minutes.

      1 Reply Last reply Reply Quote 0
      • P
        Paul47
        last edited by Apr 6, 2013, 3:09 AM

        Wow, that's shorter than I imagined. Thanks for responding…

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