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

    Using different dns server per lan port.

    Scheduled Pinned Locked Moved DHCP and DNS
    6 Posts 3 Posters 605 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
      supersayian
      last edited by

      Not sure if this has been asked and sorry if it has. I have a built a pfsense router. It has a intel quad port nic. I want to setup a vlan so the smart devices are not on my main network. The one smart device needs to access google dns servers 8.8.8.8 and 8.8.4.4. On my main lan I have it set to opendns servers which the smart device does not like to use. Is there a way to use google in place of the opendns servers without adding them to the dns servers that are displayed on the system information. I want my main lan to use open dns and the smart devices vlan to use google dns. Is that possible?

      Thank you for your time

      Gary

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

        Why not just capture all DNS requests and forward them to pfSense transparently?

        https://doc.pfsense.org/index.php/Redirecting_all_DNS_Requests_to_pfSense

        1 Reply Last reply Reply Quote 0
        • S
          supersayian
          last edited by

          @KOM Thanks for the information. I will try it out and see what happens. I will be setting up vlans to separate things on my home network. I am getting a unifi wap and want to create the two networks using one access point. Currently I am using two wap to keep separate.

          1 Reply Last reply Reply Quote 0
          • A
            akuma1x
            last edited by

            This is how I do it.

            Under System -> General Setup, put in your OpenDNS settings. It looks like you already have this part done.

            Then, after you create your VLANs, in the Services -> DHCP Server settings screens, you can specify up to 4 "different" DNS servers for all of your VLANs. So put Google's DNS servers in there.

            Jeff

            S 2 Replies Last reply Reply Quote 1
            • S
              supersayian @akuma1x
              last edited by

              @akuma1x Thank you for that. I will try that out soon. Have been busy with other things at the moment. I greatly appreciate what you have listed here.

              1 Reply Last reply Reply Quote 0
              • S
                supersayian @akuma1x
                last edited by

                @akuma1x Thanks for the information that did work. I got the vlan setup and the device is working great. Which I just removed the last extra wap device. I am running everything off of the unifi ap.

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