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

    pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!

    Scheduled Pinned Locked Moved DHCP and DNS
    7 Posts 3 Posters 720 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.
    • F
      freisei
      last edited by

      Hi.

      on my pfsense-OpenVPN-Server (10.10.20.254) i have set a DNS-name
      ltr.rz.zz which resolves fine to 10.10.20.2

      on my pfsense-OpenVPN-Client (192.168.99.254) DNS-Settings are pulled from DNS-Server (i can see in Diagnostics/DNS Lookup i can see the name-server 10.10.20.254 as second entry.)

      if i do a
      nslookup ltr.rz.zz 10.10.20.254
      from the client, it resolves, so i think i can access-restrictions are correct.

      [2.5.2-RELEASE][root@pfsense.xp8.local]/root: nslookup ltr.rz.zz 10.10.20.254
      Server:         10.10.20.254
      Address:        10.10.20.254#53
      
      Name:   ltr.rz.zz
      Address: 10.10.20.2
      

      But if i try to lookup without specific DNS-Server it doesn't work.

      [2.5.2-RELEASE][root@pfsense.xp8.local]/root: nslookup ltr.rz.zz
      Server:         127.0.0.1
      Address:        127.0.0.1#53
      
      ** server can't find ltr.rz.zz: NXDOMAIN
      

      Why is my client not using the pushed DNS?

      I the meantime i can do a Domain-Override on the client. But this is not a real solution for me.

      greets

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

        @freisei said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

        But this is not a real solution for me.

        Your unbound starts up on your pfSense.xp8.local
        How should it know that ltr.rz.zz is 10.10.20.254 ?

        What your unbound knows : type :

        cat /etc/hosts
        

        on the command line.

        Did you saw a line with "ltr.rz.zz" ?

        edit :

        We all love the old bugs, new bug are always difficult to deal with.
        But trading security for comfort, are you sure ??
        ( 2.5.2 is depreciated ...)

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

        F 1 Reply Last reply Reply Quote 0
        • F
          freisei @Gertjan
          last edited by

          @gertjan
          thanks for your reply.

          @gertjan said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

          How should it know that ltr.rz.zz is 10.10.20.254 ?

          OK, as i understand pfsense uses the first DNS, and if that one fails to resolve noone of the others is asked if he can resolv.

          I know the behavour of openvpn-client on windows. There i can push DNS and Domain and it is just used. This works even if there a multiple VPNs connected.

          Is there a way to tell my unbound that he have to look for .rz.zz names on the other host and pushing that informations through OpenVPN?

          @gertjan said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

          ( 2.5.2 is depreciated ...)

          uh, i have to update!

          bmeeksB 1 Reply Last reply Reply Quote 0
          • bmeeksB
            bmeeks @freisei
            last edited by bmeeks

            @freisei said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

            Is there a way to tell my unbound that he have to look for .rz.zz names on the other host and pushing that informations through OpenVPN?

            The domain override setting can be used to accomplish this. Simply create a Domain Override for the ".rz.zz" domain (from your example), and give unbound the IP address of the DNS server that is authoritative for that domain. If the VPN is up, and that server is available over the VPN via a proper route, then unbound on pfSense will ask that DNS server for information about the overridden domain.

            I am not 100% clear on what you want to achieve, though. Reading your posts a second time made me less certain of what you want. The process I describe lets you assign domain resolution for a specific domain to a dedicated DNS server. I read your request as wanting to contact a DNS server that is on the other end of a VPN connection when resolving a specific domain.

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

              @bmeeks said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

              The domain override setting can be used to accomplish this

              Lol. That solution was down voted.

              @freisei said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

              I the meantime i can do a Domain-Override on the client. But this is not a real solution for

              So, the reality will soon impact, @freisei will change his mind, and the issue is solved.

              DNS servers are always IP addresses.
              They can't be given as host names.
              Because : you need DNS server to resolve hos names to IP addresses.
              If that DNS is entered as a host name, you wind up with the typical chicken and egg problem.

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

              bmeeksB 1 Reply Last reply Reply Quote 0
              • bmeeksB
                bmeeks @Gertjan
                last edited by

                @gertjan said in pfsense doesnt use DNS Pushed from OpenVPN, even it it listed!:

                Lol. That solution was down voted.

                Ah! I quickly perused the thread and focused in on the single line I quoted in my first reply. Missed the earlier downvote from the OP 🙂.

                1 Reply Last reply Reply Quote 0
                • F
                  freisei
                  last edited by

                  Thanks all.
                  So my solution is to know that my workaround was the solution :)

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