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.
Resolve client hostname on a Synology VPN Server
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 4
- Joined: Fri Apr 13, 2018 5:35 am
-
- OpenVpn Newbie
- Posts: 4
- Joined: Fri Apr 13, 2018 5:35 am
Re: Resolve client hostname on a Synology VPN Server
I found another post. It should be possible with "dev tap": viewtopic.php?t=19967#p55586
But actually, I use:
Is there a possibility to resolve with "dev tun"?
Which disadvantages exists with dev tap? Would it work on Synology?
But actually, I use:
Code: Select all
dev tun
Which disadvantages exists with dev tap? Would it work on Synology?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Resolve client hostname on a Synology VPN Server
DNS works equally over --dev tun or tap ..
-
- OpenVpn Newbie
- Posts: 4
- Joined: Fri Apr 13, 2018 5:35 am
Re: Resolve client hostname on a Synology VPN Server
Can you give more details please?
-
- OpenVPN Protagonist
- Posts: 11137
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Resolve client hostname on a Synology VPN Server
Just setup what ever DNS you NAS server has built in and use that .. it will work over a vpn.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Fri Apr 13, 2018 5:35 am
Re: Resolve client hostname on a Synology VPN Server
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.
Actually I just use static IP.