[SOLVED] OpenVPN: resolve internal hostname (on my LAN)

Started by thomka, January 19, 2021, 05:12:21 PM

Previous topic - Next topic
Hi Community,

I am using OPNSense a couple of years in my home environment without any problems. Last year I created a VPN Server with OpenVPN on my OPNSense, which is running also without problems untill now.

Untill now, I have used VPN from my iPhone to contact a single service at my network. Therefore I had to insert the IP (on my VPN Client/Phone), add a relevant rule in my firewall and everything is working fine.


Now I want to access a second service in my network and I tried to access it with it´s internal DNS name and not the internal IP adress. Unfortunately the dns of the target host can not be resolved from my VPN-Client (iphone). When I access it via the internal IP, I can establish an connection, but the goal should be to access it via the internal hostname.

Did u have an idea, what I have done wrong in my configuration, or where should I start my troubbleshooting?

Many thanks in advance and best regards,

Thomas




January 19, 2021, 05:41:13 PM #1 Last Edit: January 19, 2021, 05:43:01 PM by thomka
After reviewing my configuration I found a setting, which I tought I has activated it (maybe I forgott to save it...)

My bad!


VPN > OpenVPN > Server > Edit > Client Settings > DNS Server > ------> insert your (local) DNS Server.

Afterwards I was able to resolve the hostname of my target Server from my VPN Client.

Cheers
Thomas

i have a same problem, one questio the dns server is a ip or name