Page 1 of 1

Resolve client hostname on a Synology VPN Server

Posted: Fri Apr 13, 2018 5:37 am
by Qaldak
Hi

On my Synology NAS an OpenVPN Server is running.
With another Synology NAS I connect to VPN Server as a client. This works.

Connect to the client with IP-address works fine. But if I try to connect from server to the client with client hostname, the hostname cannot be resolved.

How can I push the client hostname to the server?
Is following still the only possibility: https://openvpn.net/archive/openvpn-use ... 00119.html
Does it works on Synology DSM 6?

If not necessary I try to avoid installing DNS Server or complex code/scripts.

Use case:
From Server it back up to client. Because it's not sure the client always get's the same VPN IP-address, I would connect with hostname.

Alternative:
If hostname is not possible, maybe it's an option to use a static VPN IP for this VPN client.

Re: Resolve client hostname on a Synology VPN Server

Posted: Sat Apr 14, 2018 8:39 pm
by Qaldak
I found another post. It should be possible with "dev tap": viewtopic.php?t=19967#p55586

But actually, I use:

Code: Select all

dev tun
Is there a possibility to resolve with "dev tun"?
Which disadvantages exists with dev tap? Would it work on Synology?

Re: Resolve client hostname on a Synology VPN Server

Posted: Sun Apr 15, 2018 11:37 am
by TinCanTech
DNS works equally over --dev tun or tap ..

Re: Resolve client hostname on a Synology VPN Server

Posted: Sun Apr 15, 2018 5:36 pm
by Qaldak
Can you give more details please?

Re: Resolve client hostname on a Synology VPN Server

Posted: Sun Apr 15, 2018 8:24 pm
by TinCanTech
Just setup what ever DNS you NAS server has built in and use that .. it will work over a vpn.

Re: Resolve client hostname on a Synology VPN Server

Posted: Tue Apr 17, 2018 4:22 am
by Qaldak
I setup DNS server, but I couldn't solve VPN client name without static IP. With static IP it resolved the name correct.
Actually I just use static IP.