mirror of
https://github.com/hwdsl2/docker-ipsec-vpn-server.git
synced 2026-04-27 10:35:53 +03:00
[GH-ISSUE #318] Specifying DNS name does not apply in IKEv2 mode #296
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @SandiyosDev on GitHub (Nov 5, 2022).
Original GitHub issue: https://github.com/hwdsl2/docker-ipsec-vpn-server/issues/318
Specifying the environment variable "VPN_DNS_NAME=vpn.example.com" does not apply in IKEv2 mode, although you could manually set a DNS server in the generated configuration profile "vpnclient.mobileconfig", it would be more consistent for "VPN_DNS_NAME" to apply in IKEv2 mode.
@hwdsl2 commented on GitHub (Nov 5, 2022):
@SGprooo Hello! The
VPN_DNS_NAMEvariable specifies a DNS name (domain name) to be used as the IKEv2 server address, such asvpn.example.com. This is NOT to specify a DNS server.You may instead use
VPN_DNS_SRV1and/orVPN_DNS_SRV2to specify custom DNS servers. See [1] and [2] for more details.Note that all of these variables have no effect for IKEv2 mode, if IKEv2 is already set up in the Docker container. In this case, you may remove IKEv2 and set it up again using custom options. Refer to Configure and use IKEv2 VPN.
[1] https://github.com/hwdsl2/docker-ipsec-vpn-server#how-to-use-this-image
[2] https://github.com/hwdsl2/docker-ipsec-vpn-server/blob/master/vpn.env.example