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

    My VPN DNS is used on all my subnets

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 2 Posters 678 Views 2 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.
    • D Offline
      Djinn1
      last edited by

      Hi,

      I have 3 subnets, LAN, LAN2 and LAN3. I have a Openvpn setup and routed traffic on LAN and LAN2 to use my VPN and LAN3 is using ISP. So far it works great. My problem here is LAN3 is using the VPN DNS, I want it to use the ISP DNS.

      In general setting have my VPN providers DNS.

      I tried to add one more DNS like 1.1.1.1 and LAN3 still uses the VPN DNS.

      How can I fix this?

      Thanks in regard.

      GertjanG 1 Reply Last reply Reply Quote 0
      • GertjanG Offline
        Gertjan @Djinn1
        last edited by

        @djinn1 said in My VPN DNS is used on all my subnets:

        I want it to use the ISP DNS.

        That is : you want the devices on LAN3 to use the ISP DNS.
        Easy : the pfSense admin decides what DNS IP are handed over to the clients on a LAN.
        This is done with the help DHCP server, and the DHCP client, who asks for an IP, a gateway, one ore more DNS servers, etc.
        So : goto the LAN3 DHCP server settings page, and under 'DNS' set up the DNS you want.

        Btw : 1.1.1.1 isn't your ISP DNS ;)

        No "help me" PM's please. Use the forum, the community will thank you.
        Edit : and where are the logs ??

        D 2 Replies Last reply Reply Quote 0
        • D Offline
          Djinn1 @Gertjan
          last edited by

          @gertjan said in My VPN DNS is used on all my subnets:

          oto the LAN3 DHCP

          Thanks I will try that.

          I know 1.1.1.1 is not ISP DNS :), usually my ISP DNS is automatically selected when VPN is not active. Is it possible to let it choose my ISP DNS as default because I don't know what it is?

          GertjanG 1 Reply Last reply Reply Quote 0
          • D Offline
            Djinn1 @Gertjan
            last edited by

            @gertjan said in My VPN DNS is used on all my subnets:

            under 'DNS' set up the DNS you want.

            I added the DNS, still on LAN3 I get my VPN DNS.Screenshot 2021-11-03 130922.png

            1 Reply Last reply Reply Quote 0
            • GertjanG Offline
              Gertjan @Djinn1
              last edited by Gertjan

              @djinn1 said in My VPN DNS is used on all my subnets:

              Is it possible to let it choose my ISP DNS as default because I don't know what it is?

              If you have a "ISP router" in front of your pfSense : visit it's GUI and you will probably find it.
              Or : Google them up ( see their FAQ),
              Or : they are in the mail that came when you subscribed,
              Or : call them ?

              @djinn1 said in My VPN DNS is used on all my subnets:

              I added the DNS, still on LAN3 I get my VPN DNS.

              The DHCP server won't push this info to the DHCP clients.
              Clients take the initiative to renew their DHCP leases.
              There are many ways to force a DHCP transaction (make the client renew its IP info): rip out the LAN cable of the device for a moment, de activate the NIC in the device for a moment, or use the ancient commands like

              ipconfig /relase
              ipconfig /renew
              ipconfig /all
              

              (these are Windows commands - Linux and other OS users already know what to do)

              or just wait for 12 hours (see for yourself how long the DHCP lease last = gets renewed).

              The last command shows the DNSs I obtained from the DHCP server :

              73cad949-edd9-46d1-81e6-92843b11a90d-image.png

              When I add something like :

              06021de6-2f97-4070-9613-a032467012d0-image.png

              on the DHCP server page of my LAN2 interface, and I renew my DHCP on a client on LAN2, I do get :

              263c8265-b653-4ee1-b718-b48cc33b422f-image.png

              You see the 1.2.3.4 ?

              ( which breaks my IP4v DNS, as 1.2.3.4 is just an IP I invented, and probably not a DNS server)

              Btw : there are other aspect to be taken in account : example : traffic from your LAN3 shouldn't be policy routed over the VPN-WAN.

              No "help me" PM's please. Use the forum, the community will thank you.
              Edit : and where are the logs ??

              D 2 Replies Last reply Reply Quote 0
              • D Offline
                Djinn1 @Gertjan
                last edited by

                @gertjan

                I will try the ancient one its easy and I am familiar with it.

                All LAN3 traffic goes behind VPN. That part works great.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  Djinn1 @Gertjan
                  last edited by

                  @gertjan Everything works now. Thanks for all the help.

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