Skip to content

Commit 92e7e96

Browse files
samruebykarelz
authored andcommitted
Made clear DNS subsystem is used (#653)
Documentation was confusing because is worded as if it queried using the DNS protocol, not the subsystem. If it was just using the DNS protocol, it could be bypassing the hosts file, similar to the nslookup tool. Confirmed this code does not bypass the hosts file.
1 parent 510d3c1 commit 92e7e96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

xml/System.Net/Dns.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -680,7 +680,7 @@
680680
<format type="text/markdown"><![CDATA[
681681
682682
## Remarks
683-
The <xref:System.Net.Dns.GetHostAddresses%2A> method queries a DNS server for the IP addresses associated with a host name. If `hostNameOrAddress` is an IP address, this address is returned without querying the DNS server.
683+
The <xref:System.Net.Dns.GetHostAddresses%2A> method queries the DNS subsystem for the IP addresses associated with a host name. If `hostNameOrAddress` is an IP address, this address is returned without querying the DNS server.
684684
685685
If an empty string is passed as the `hostNameOrAddress` argument, then this method returns the IPv4 and IPv6 addresses of the local host.
686686
@@ -1400,4 +1400,4 @@
14001400
</Docs>
14011401
</Member>
14021402
</Members>
1403-
</Type>
1403+
</Type>

0 commit comments

Comments
 (0)