• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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 718 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 Dec 1, 2022, 9:01 AM

    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

    G 1 Reply Last reply Dec 1, 2022, 9:44 AM Reply Quote 0
    • G
      Gertjan @freisei
      last edited by Gertjan Dec 1, 2022, 9:45 AM Dec 1, 2022, 9:44 AM

      @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 Dec 1, 2022, 11:06 AM Reply Quote 0
      • F
        freisei @Gertjan
        last edited by Dec 1, 2022, 11:06 AM

        @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!

        B 1 Reply Last reply Dec 1, 2022, 1:36 PM Reply Quote 0
        • B
          bmeeks @freisei
          last edited by bmeeks Dec 1, 2022, 1:40 PM Dec 1, 2022, 1:36 PM

          @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.

          G 1 Reply Last reply Dec 1, 2022, 1:42 PM Reply Quote 0
          • G
            Gertjan @bmeeks
            last edited by Dec 1, 2022, 1:42 PM

            @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 ??

            B 1 Reply Last reply Dec 1, 2022, 1:44 PM Reply Quote 0
            • B
              bmeeks @Gertjan
              last edited by Dec 1, 2022, 1:44 PM

              @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 Dec 2, 2022, 12:38 PM

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

                1 Reply Last reply Reply Quote 1
                7 out of 7
                • First post
                  7/7
                  Last post
                Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                  This community forum collects and processes your personal information.
                  consent.not_received