Options

Multiple DNS Suffixes

Is there a way to have two DNS suffixes in an Ikev2 profile?

Looking for this:

internal.local
external.com

Answers

  • Options

    You can add this to the AddVPN.ps1 file in the PS folder, below the
    Set-VpnConnectionIPsecConfiguration line.

    Make sure that the ConnectionName matches what you have in the script.

    Set-VpnConnectionTriggerDnsConfiguration -ConnectionName "WG IKEv2" -DnsSuffixSearchList "dns-suffix-1.com", "dns-suffix-2.com" -PassThru -Force

    Afterwards, upon connection of the IKEv2 session you will see both domain name suffixes listed in an "ipconfig /all" command

  • Options

    Great! Thanks.

    How do you do this in an IOS profile?

  • Options

    No idea. I have no experiences with them.

  • Options

    A quick look at the script for Mac & iOS seems that you can add a 2nd entry in the SearchDomains section, with the same format as the existing string entry since the type for SearchDomains is Array.

Sign In to comment.