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

    How to make OpenVPN Client use DNS Resolver?

    OpenVPN
    2
    3
    546
    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.
    • T
      testcb00
      last edited by

      Hi everyone,

      I have made a OpenVPN Server in pfSense and I can connect to my private Nextcloud using IP Address in my OpenVPN Client.

      However, I find that I cannot use nextcloud.mydomain to connect my Nextcloud.

      I add the OpenVPN Local Network (10.10.10.0/24) to the DNS Resolver Access Lists but no luck.

      The current DNS Resolver settings are

      Network Interfaces
      #---------------------------
      LAN
      VPN
      Localhost

      Outgoing Network Interfaces
      #---------------------------
      WAN

      System Domain Local Zone Type
      #---------------------------
      Static

      DNSSEC
      #---------------------------
      ✓ Enable DNSSEC Support

      Python Module
      #---------------------------
      □ Enable Python Module

      DNS Query Forwarding
      #---------------------------
      □ Enable Forwarding Mode
      □ Use SSL/TLS for outgoing DNS Queries to Forwarding Servers

      DHCP Registration
      #---------------------------
      ✓ Register DHCP leases in the DNS Resolver

      Static DHCP
      #---------------------------
      ✓ Register DHCP static mappings in the DNS Resolver

      OpenVPN Clients
      #---------------------------
      ✓ Register connected OpenVPN clients in the DNS Resolver

      Host Overrides
      #---------------------------
      nextcloud mydomain 192.168.160.101

      Bob.DigB 1 Reply Last reply Reply Quote 0
      • Bob.DigB
        Bob.Dig LAYER 8 @testcb00
        last edited by Bob.Dig

        @testcb00 You have to put in a pfSense IP in the OVPN Server in the DNS field, take the IP of the OVPN Server itself is probably a good idea.

        T 1 Reply Last reply Reply Quote 0
        • T
          testcb00 @Bob.Dig
          last edited by testcb00

          @bob-dig Thank for your reply.

          Currently my OpenVPN settings is here
          45e6a85a-52bd-4dd6-a4f1-bd1e35d3a009-image.png
          In the above photo, 192.168.160.0/24 IPv4 Local network which OpenVPN Client can access.
          With this setting, I can connect to Nextcloud using nextcloud.mydomain now

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