hwdsl2 / setup-ipsec-vpn

Scripts to build your own IPsec VPN server, with IPsec/L2TP, Cisco IPsec and IKEv2
Other
25.26k stars 6.32k forks source link

DNS substitution #1478

Closed skop1986 closed 1 year ago

skop1986 commented 1 year ago

Hello friend! DNS substitution is configured on one of my devices (tinyiptv.com = 94.237.41.236), but when I turn on the VPN, the VPN blocks DNS substitution. You can configure DNS substitution for tinyiptv.com on the server or in the mobileconfig profile?

hwdsl2 commented 1 year ago

@skop1986 Hello! This is not currently supported and cannot be configured directly on the server or in the mobileconfig file. However, you can specify custom DNS servers for all clients, see:

https://github.com/hwdsl2/setup-ipsec-vpn/blob/master/docs/advanced-usage.md#use-alternative-dns-servers

Your can make your custom DNS server return a different response for the domain name in question. This may or may not help your use case.