• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 102 Views 1 Watching
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.
  • M Offline
    Mr_JinX
    last edited by Mr_JinX May 10, 2019, 9:12 PM May 10, 2019, 9:11 PM

    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
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received