Interface IDnsRequestResolver
Represents an interface for resolving DNS requests.
Namespace: VpnSDK.Common.Dns
Assembly: cs.temp.dll.dll
Syntax
public interface IDnsRequestResolver
Methods
ResolveAsync(String)
Asynchronously resolves the specified domain name and returns the corresponding IP address.
Declaration
Task<DnsResolutionResult> ResolveAsync(string domain)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | domain | The domain name to resolve. |
Returns
| Type | Description |
|---|---|
| Task<DnsResolutionResult> | A task that represents the asynchronous resolution operation and contains the resolved IP address. |