DnsResolverExtensionsResolvePtrAsync Method

Queries a dns resolver for reverse name of an IP address as an asynchronous operation.

Definition

Namespace: ARSoft.Tools.Net.Dns
Assembly: ARSoft.Tools.Net (in ARSoft.Tools.Net.dll) Version: 3.6.1+aaafdcd61f068318c11734f7b3c59c69371c0549
C#
public static Task<DomainName?> ResolvePtrAsync(
	this IDnsResolver resolver,
	IPAddress address,
	CancellationToken token = default
)

Parameters

resolver  IDnsResolver
The resolver instance, that should be used for queries
address  IPAddress
The address, that should be queried
token  CancellationToken  (Optional)
The token to monitor cancellation requests

Return Value

TaskDomainName
The reverse name of the IP address

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type IDnsResolver. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also