Problem hostname resolving on lan site over ovpn connection
-
hi,
i've succesfully configured an ovpn connection but have problems to resolve the hostname of the servers on the lan site:
openvpn server:
udp 1194
tun
tunnel network 10.0.8.0/24
lan network 192.168.1.0/24
dns servers 192.168.1.1lan server with static configured ip:
hostname "fileserver"
static ip 192.168.1.150/24
dns server 192.168.1.1now it is not possible to ping the lan server with hostname:
ping fileserver -> unkown hostonly after i've activated dns forwarder service in pfsense and added an entry in "host overrides" i could succesfully ping the hostname:
Host Domain IP Description
fileserver mydomin 192.168.1.150 hostname fileserver
ping fileserver -> response oknow my question is, what is the right way to configure pfsense that manual configured servers with static ip on the lan can also be forwarded over an ovpn connection by its hostname?
i'm not sure if my solution is the absolute right configuration and would be happy if someone could clarify the issue more precisely how to do the things normally or have an alternative solution.
thanks.
daniel
-
You need some sort of working dns setup. Either on a separate system or using pfsense dns services
-
thank you.
first when configuring the lan server over dhcp its hostname appears correctly in the pfsense menu Status -> DHCP leases and you can ping the hostname correctly.
only if i configure a static ip for the lan server network it is shown only in the menu Diagnostic -> ARP Table but not under the DHCP leases.
so what to do to setup the dns service that it also can resolve the hostnames from the connected servers showed in the ARP Tables? where and how to configure the dns service for lan in pfsense, like you said?
at the moment my above mentioned solution works fine but if there is a way to automatically resolve manually configured lan networks please give me a further tip.
daniel