Resolve client hostname on a Synology VPN Server

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
Qaldak
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 13, 2018 5:35 am

Resolve client hostname on a Synology VPN Server

Post by Qaldak » Fri Apr 13, 2018 5:37 am

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.

Qaldak
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 13, 2018 5:35 am

Re: Resolve client hostname on a Synology VPN Server

Post by Qaldak » Sat Apr 14, 2018 8:39 pm

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?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Resolve client hostname on a Synology VPN Server

Post by TinCanTech » Sun Apr 15, 2018 11:37 am

DNS works equally over --dev tun or tap ..

Qaldak
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 13, 2018 5:35 am

Re: Resolve client hostname on a Synology VPN Server

Post by Qaldak » Sun Apr 15, 2018 5:36 pm

Can you give more details please?

TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Resolve client hostname on a Synology VPN Server

Post by TinCanTech » Sun Apr 15, 2018 8:24 pm

Just setup what ever DNS you NAS server has built in and use that .. it will work over a vpn.

Qaldak
OpenVpn Newbie
Posts: 4
Joined: Fri Apr 13, 2018 5:35 am

Re: Resolve client hostname on a Synology VPN Server

Post by Qaldak » Tue Apr 17, 2018 4:22 am

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.

Post Reply