35 references to Dns
dotnet-svcutil-lib (2)
FrameworkFork\System.ServiceModel\System\ServiceModel\Channels\DnsCache.cs (2)
60s_machineName = Dns.GetHostEntryAsync(String.Empty).GetAwaiter().GetResult().HostName; 168return (await Dns.GetHostEntryAsync(hostName)).AddressList;
http2cat (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
IIS.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
IIS.LongTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
IIS.NewHandler.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
IIS.NewShim.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
IISExpress.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (1)
src\Shared\Http2cat\Http2CatHostedService.cs (1)
63ip = Dns.GetHostEntry(address.Host).AddressList.First();
Microsoft.DotNet.Build.Tasks.Installers (1)
src\RpmBuilder.cs (1)
54new RpmHeader<RpmHeaderTag>.Entry(RpmHeaderTag.BuildHost, RpmHeaderEntryType.String, Dns.GetHostName()),
Microsoft.Extensions.ServiceDiscovery.Dns (1)
DnsServiceEndpointProvider.cs (1)
32var addresses = await System.Net.Dns.GetHostAddressesAsync(hostName, ShutdownToken).ConfigureAwait(false);
netstandard (1)
netstandard.cs (1)
1079[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Dns))]
Sockets.BindTests (3)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
35_hostname = Dns.GetHostName();
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (2)
41var hostName = Dns.GetHostName(); 364var hostName = Dns.GetHostName();
Sockets.FunctionalTests (1)
src\Servers\Kestrel\shared\test\TransportTestHelpers\HostNameIsReachableAttribute.cs (1)
35_hostname = Dns.GetHostName();
System (1)
src\libraries\shims\System\ref\System.cs (1)
606[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Net.Dns))]
System.Net.Http (3)
System\Net\Http\SocketsHttpHandler\AuthenticationHelper.NtAuth.cs (1)
144IPHostEntry result = await Dns.GetHostEntryAsync(authUri.IdnHost, cancellationToken).ConfigureAwait(false);
System\Net\Http\SocketsHttpHandler\SocksHelper.cs (2)
252? await Dns.GetHostAddressesAsync(host, AddressFamily.InterNetwork, cancellationToken).ConfigureAwait(false) 253: Dns.GetHostAddresses(host, AddressFamily.InterNetwork);
System.Net.HttpListener (3)
System\Net\Managed\HttpEndPointManager.cs (1)
122addr = Dns.GetHostAddresses(host)[0];
System\Net\ServiceNameStore.cs (2)
281string machineName = Dns.GetHostEntry(string.Empty).HostName; 299string fqdn = Dns.GetHostEntry(hostname).HostName;
System.Net.NameResolution (1)
System\Net\NameResolutionPal.Unix.cs (1)
135name = Dns.GetHostName();
System.Net.Ping (2)
System\Net\NetworkInformation\Ping.cs (2)
648(await Dns.GetHostAddressesAsync(hostName, cancellationToken).ConfigureAwait(false))[0], 691IPAddress[] addresses = Dns.GetHostAddresses(hostNameOrAddress);
System.Net.Quic (1)
System\Net\Quic\QuicConnection.cs (1)
396IPAddress[] addresses = await Dns.GetHostAddressesAsync(host, cancellationToken).ConfigureAwait(false);
System.Net.Requests (2)
System\Net\HttpWebRequest.cs (2)
1765await Dns.GetHostAddressesAsync(context.DnsEndPoint.Host, cancellationToken).ConfigureAwait(false) : 1766Dns.GetHostAddresses(context.DnsEndPoint.Host);
System.Net.Sockets (4)
System\Net\Sockets\Socket.cs (1)
927IPAddress[] addresses = Dns.GetHostAddresses(host);
System\Net\Sockets\SocketAsyncEventArgs.cs (1)
690Task<IPAddress[]> addressesTask = Dns.GetHostAddressesAsync(endPoint.Host, endPoint.AddressFamily, cancellationToken);
System\Net\Sockets\UDPClient.cs (2)
340IPAddress[] addresses = Dns.GetHostAddresses(hostname); 702IPAddress[] addresses = Dns.GetHostAddresses(hostname);
System.Net.WebProxy (2)
System\Net\WebProxy.NonWasm.cs (2)
28IPAddress[] localAddresses = s_localAddresses ??= Dns.GetHostEntry(Dns.GetHostName()).AddressList;