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

    Exclude client from default dns

    Scheduled Pinned Locked Moved DHCP and DNS
    4 Posts 4 Posters 796 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.
    • S
      satanhead2003
      last edited by

      Hi,

      First of all, Im new to both pfsense and this forum. This is my problem

      All my client uses dhcp and I use opendns as default dns server for my pfsense which its blocking is in effect. Is there a way to exclude my client to use other dns server other than setting it manually on the client pc?

      1 Reply Last reply Reply Quote 0
      • A
        Alex Atkin UK
        last edited by

        I too am new to pfSense but I can offer at least one option.

        You can add a static DHCP lease for that client and specify the DNS servers in there.

        The only catch is static DHCP clients cannot be from within the main DHCP IP pool.  But I generally prefer to have static DHCP rules for all my clients with just a small pool for potential guests.

        1 Reply Last reply Reply Quote 0
        • KOMK
          KOM
          last edited by

          Setting DNS on your PC is probably the fastest and easiest way to do it.

          1 Reply Last reply Reply Quote 0
          • P
            phil.davis
            last edited by

            If you have client systems/people who are trying to get around your DNS by setting a different DNS in their device, then you also need to put block rules on LAN for TCP/UDP to places other than LAN IP. That will stop their changed DNS from working. You can even forward that to the DNS listening on LAN IP so that the clients can change their DNS but still really you will just send everything into the pfSense DNS anyway.

            As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
            If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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