<PackageReference Include="System.Configuration.ConfigurationManager" Version="5.0.0" />

UriIdnScope

public enum UriIdnScope
Provides the possible values for the configuration setting of the IdnElement in the Configuration namespace.
All = 2

This value will convert any Unicode domain names to their Punycode equivalents (IDN names).

This value will convert all external Unicode domain names to use the Punycode equivalents (IDN names). In this case to handle international names on the local Intranet, the DNS servers that are used for the Intranet should support Unicode names.

None = 0

This value will not convert any Unicode domain names to use Punycode. This is the default value which is consistent with the .NET Framework 2.0 behavior.