OpenVpn does not resolve local.lan dns
-
Hi, I can reach any machine in the local lan network "192.168.3.0/24" using the default local dns "local.lan", I can do for instance
nslookup jenkins.local.lan and it returns its ip address, but when I use OpenVPN I can reach any local machine but only with its IP address not with the DNS jenkins.local.lanI have done several things for it but anything has worked so far, I am using DNS Resolver having checked this options
I have got also in the OpenVPN Advanced Client Settings and Advanced Configuration next settings
I would appreciate any support on it, thanks
-
@juandavidmarin
Is the DNS server added to the connection on the client?What do you get, when you try to resolve the FQDN on the client?
The custom options are needless. This settings are already done by the 'DNS domain' and 'DNS server' options.
-
Hi @viragomann thanks for your support on this.
I could get it working, I just removed Custom options
push "dhcp-option DNS 192.168.3.1"; push "dhcp-option DOMAIN local.lan";
I saved changes and restarted the whole pfsense, it just started working after that restart, I mean the machines which are using OpenVPN can reach the machines which are in the LAN network by dns instead of IP addresses, my suspicion pfsense needed to be restarted and there was not any need by adding the Custom options, after that I wanted to double check this in other to have repeatable steps and what I could find out is that those enabled options in Dns Resolver such as DHCP Registration, Static DHCP, OpenVPN Clients as DNS Default Domain and Dns Server 1 in OpenVPN server settings are mandatory options in order to get it working, I know there could be a lot of ways to do this, I am just sharing with you how I could do it in this way