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

How to make OpenVPN Client use DNS Resolver?

Scheduled Pinned Locked Moved OpenVPN
3 Posts 2 Posters 547 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.
  • T
    testcb00
    last edited by Jul 18, 2021, 8:02 AM

    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

    B 1 Reply Last reply Jul 18, 2021, 9:14 AM Reply Quote 0
    • B
      Bob.Dig LAYER 8 @testcb00
      last edited by Bob.Dig Jul 18, 2021, 9:16 AM Jul 18, 2021, 9:14 AM

      @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 Jul 18, 2021, 10:17 AM Reply Quote 0
      • T
        testcb00 @Bob.Dig
        last edited by testcb00 Jul 18, 2021, 10:20 AM Jul 18, 2021, 10:17 AM

        @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
        3 out of 3
        • First post
          3/3
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
          This community forum collects and processes your personal information.
          consent.not_received