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

    Direct DNS –> exception

    Scheduled Pinned Locked Moved Firewalling
    4 Posts 3 Posters 1.1k 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
      Panja
      last edited by

      I have setup DNS redirection on my pfSense box, followed this guide:
      https://doc.pfsense.org/index.php/Redirecting_all_DNS_Requests_to_pfSense

      It works, all DNS request are redirected to my pfSense box. If clients change their DNS server, it still redirects to my pfSense box.
      Only thing is that I need 1 client in my network as an exception. He needs to be able to have an alternative DNS server.

      How can I do that?

      1 Reply Last reply Reply Quote 0
      • M
        muswellhillbilly
        last edited by

        If you create a static mapping in your DHCP server settings to the MAC address of the client, you can set a different DNS server for that client. Just go to Services\DHCP Server and choose your LAN. Scroll down to the bottom of the page and you can add static mappings there.

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          this is the bad thing about redirections.  I don't understand why you would just not block outside dns requests if you don't want them.  And point your clients to the dns you wan them to use.  This makes it much easier to allow for exceptions.

          If your clients try and use something that is not allowed then they would just fail.. Vs them thinking they are talking to the dns they set, etc.

          If your wanting to redirect all but specific clients then you would have to write your redirect to not now redirect the clients you don't want to redirect and then set them and allow them to go where there wanted to go.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          1 Reply Last reply Reply Quote 0
          • P
            Panja
            last edited by

            Thanks for the help guys.
            I have chosen to disable the redirection and set "block external dns" through firewall rules.

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