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

    how to make pfsense intercept dns queries

    Scheduled Pinned Locked Moved DHCP and DNS
    3 Posts 3 Posters 309 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.
    • georgelzaG
      georgelza
      last edited by

      Hi all

      I've got dns resolver configured on my pfsense.
      is there a way to tell pfsense to catch all dns queries, and first see if it has a record thats applicable, and if not then push it out.

      thinking it needs to be listening on outbound port 53 queries .

      G

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @georgelza
        last edited by

        @georgelza said in how to make pfsense intercept dns queries:

        is there a way to tell pfsense to catch all dns queries,

        Add localhost to the resolvers listening interfaces and redirect all DNS requests to it with a port forwarding rule on all interfaces.
        Looks like this in my pfSense:
        1a75dd61-a3c8-4c67-aba3-49b804beda04-grafik.png

        Internal is an interface group including my internal interfaces.

        and first see if it has a record thats applicable, and if not then push it out.

        This is the default behavior of the DNS resolver.

        1 Reply Last reply Reply Quote 0
        • U
          Uglybrian
          last edited by

          One of my favorite pages on the Netgate Docs-
          https://docs.netgate.com/pfsense/en/latest/recipes/index.html
          Scroll down to DNS then click on redirecting client Dns.

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