Not without setting up a DNS server, but getting one to work is very easy and can be restricted behind the VPN.
I am using dnsmasq on Ubuntu 14.04 for exactly this purpose. Just install it and add all your hosts to the /etc/hosts
-File in the following way:
# Clients on the VPN
10.8.0.1 vpn.lan vpn.lan
10.8.0.8 service1.lan service1
10.8.0.6 service2.lan service2
You can restrict dnsmasq, that it only listens to the tun0
-Interface of OpenVPN by adding interface=tun0
to /etc/dnsmasq.conf
. You can push the DNS server to your clients by adding push "dhcp-option DNS 10.8.0.1"
to your /etc/openvpn/server.conf
.
The downside of this solution is, that you have to add every server to /etc/hosts
, but for a couple of servers I think it's ok.