Navigation

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

    Forcing different DNS Servers with different clients on LAN

    DHCP and DNS
    2
    2
    2157
    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
      matthackett last edited by

      Hello,
      I have recently setup my first pfSense firewall/router, and am learning as I go along. My networking fundamentals are cursory at best.

      I've been having trouble forcing different machines on my LAN to use specific DNS servers. I initially setup pfSense using two OpenDNS servers in System>General, and everything seemed to work as normal. Then I added an OpenVPN gateway (Private Internet Access) which I have successfully routed traffic from two clients through.

      What I want to do is use the DNS servers that Private Internet Access provides for those two clients (which use the VPN gateway), while using the OpenDNS servers for everything else. I have tried adding the PIA DNS servers to System>General and changing the DNS servers to specific gateways, but whenever I do a DNSLeakTest the responses always seem to be from both sets of DNS Servers. Is this because this gateway option is for actual multi-WAN setups, and not a virtual gateway that is still using my single WAN to access the internet?

      Do I need to somehow setup firewall rules to specify certain DNS servers for specific clients' IP addresses?

      I'm using pfSense 2.2.2, with (I think) fairly default settings. I'm happy to post screenshots of any relevant settings when I'm home from work this evening.

      Any help would be greatly appreciated!

      Matt

      1 Reply Last reply Reply Quote 0
      • Derelict
        Derelict LAYER 8 Netgate last edited by

        Set static mappings in the DHCP server for those two MAC addresses.  You can set specific DNS servers there.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post

        Products

        • Platform Overview
        • TNSR
        • pfSense
        • Appliances

        Services

        • Training
        • Professional Services

        Support

        • Subscription Plans
        • Contact Support
        • Product Lifecycle
        • Documentation

        News

        • Media Coverage
        • Press
        • Events

        Resources

        • Blog
        • FAQ
        • Find a Partner
        • Resource Library
        • Security Information

        Company

        • About Us
        • Careers
        • Partners
        • Contact Us
        • Legal
        Our Mission

        We provide leading-edge network security at a fair price - regardless of organizational size or network sophistication. We believe that an open-source security model offers disruptive pricing along with the agility required to quickly address emerging threats.

        Subscribe to our Newsletter

        Product information, software announcements, and special offers. See our newsletter archive to sign up for future newsletters and to read past announcements.

        © 2021 Rubicon Communications, LLC | Privacy Policy