How to make OpenVPN Client use DNS Resolver?
-
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
LocalhostOutgoing Network Interfaces
#---------------------------
WANSystem Domain Local Zone Type
#---------------------------
StaticDNSSEC
#---------------------------
✓ Enable DNSSEC SupportPython Module
#---------------------------
□ Enable Python ModuleDNS Query Forwarding
#---------------------------
□ Enable Forwarding Mode
□ Use SSL/TLS for outgoing DNS Queries to Forwarding ServersDHCP Registration
#---------------------------
✓ Register DHCP leases in the DNS ResolverStatic DHCP
#---------------------------
✓ Register DHCP static mappings in the DNS ResolverOpenVPN Clients
#---------------------------
✓ Register connected OpenVPN clients in the DNS ResolverHost Overrides
#---------------------------
nextcloud mydomain 192.168.160.101 -
@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.
-
@bob-dig Thank for your reply.
Currently my OpenVPN settings is here
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