Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    DNS cache and pfSense on same box?

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 9.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.
    • J
      jmischel
      last edited by

      I'm running an experimental Web crawler that makes a very large number of DNS requests, and have been asked if I could cache DNS info in order to reduce some of the load on our primary DNS server.  Rather than set up another box to serve as our local DNS cache, I was wondering if it's possible to do that on the same box that's running pfSense.

      Yes, I know that pfSense has a built-in DNS cache, but it's incredibly small.  I make thousands of DNS requests per minute, and want to do some custom caching of the results.  If I can't do it on the pfSense box, I'll set up a machine with BIND or some other DNS software.  But … if I can combine the two machines, all the better.

      I'm currently running pfSense (1.2-RC2) on a 2.4 GHz Core 2 Duo with 4 gigabytes of RAM.  Solid as a rock.  But the machine is horribly under-used.  How difficult would it be to set up a huge DNS cache on this machine?  Understand, I don't need this thing to act as an authority or anything--just forward requests to the primary DNS server and then cache the results for a while.

      What DNS software would be best?  How do I install it beside pfSense and have both come up?  Would pfSense get confused if I tell it that its primary DNS server is localhost?

      I'm kind of a newb when it comes to fiddling with BSD, so as much detail as possible would be helpful.  Thanks in advance.

      Jim

      1 Reply Last reply
      Reply Quote 0
      • A
        AtomicPlayboy
        last edited by

        I suppose the first question would be "why aren't you running a cacheing nameserver on the box where you're running the web crawler?"  That would be the logical place for it to live…

        -Rob

        1 Reply Last reply
        Reply Quote 0
        • J
          jmischel
          last edited by

          With a distributed crawler architecture, you still want an upstream cache.

          1 Reply Last reply
          Reply Quote 0
          • F
            flachance
            last edited by

            Did you try the DNS-server package?  It installs TinyDNS.  You can find instructions to adjust the cache size on this page:

            http://cr.yp.to/djbdns/cachesize.html

            1 Reply Last reply
            Reply Quote 0
            • J
              jmischel
              last edited by

              Thanks for the pointer to dns-server.  Perhaps that will do the job.

              1 Reply Last reply
              Reply Quote 0

              Hello! It looks like you're interested in this conversation, but you don't have an account yet.

              Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

              With your input, this post could be even better 💗

              Register Login
              • First post
                Last post
              Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
              Privacy Policy · Cookie Policy