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

    Custom DNS for certain clients

    Scheduled Pinned Locked Moved DHCP and DNS
    1 Posts 1 Posters 97 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.
    • Mr_JinXM
      Mr_JinX
      last edited by Mr_JinX

      So, I wanted certain clients to have a sort of whitelist only DNS while everyone else gets normal DNS service.

      So what i ended up doing was creating a pihole DNS server (with the default action to deny all requests, except those domains on a whitelist) and create a NAT rule, that matches an alias when one of the restricted IP addresses makes a DNS lookup it forwards the request to the pihole server, while everyone else gets to hits the PFsense DNS server.

      pfsense-nat.png

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