<ipv6> Element (Network Settings)
Enables Internet Protocol version 6 (IPv6) responses from obsolete members of the Dns class.
<configuration>
<system.net>
<settings>
<ipv6>
Syntax
<ipv6
enabled="true|false"
/>
Attributes and Elements
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
enabled |
Specifies whether members of the Dns class return Internet Protocol version 6 (IPv6) addresses. The default value is false . |
Child Elements
None.
Parent Elements
Element | Description |
---|---|
settings | Configures basic network options for the System.Net namespace. |
Remarks
This setting enables IPv6 support for the obsolete members of the Dns class: BeginGetHostByName, BeginResolve, EndGetHostByName, EndResolve, GetHostByAddress, GetHostByName, and Resolve. For other members of the System.Net namespace, IPv6 addresses may be returned if IPv6 is enabled in the operating system.
Configuration Files
This element can be used in the application configuration file or the machine configuration file (Machine.config).
Example
The following example shows how to enable IPv6 support for the Dns class.
<configuration>
<system.net>
<settings>
<ipv6 enabled="true"/>
</settings>
</system.net>
</configuration>
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for