Show / Hide Table of Contents

Interface IDnsClient

Represents a client capable of returning a DNS answer for a query.

Namespace: Ae.Dns.Protocol
Assembly: Ae.Dns.Protocol.dll
Syntax
public interface IDnsClient : IDisposable

Methods

| Improve this Doc View Source

Query(DnsMessage, CancellationToken)

Return an answer for the specified DNS query.

Declaration
Task<DnsMessage> Query(DnsMessage query, CancellationToken token = null)
Parameters
Type Name Description
DnsMessage query

The DNS query to run, see DnsQueryFactory.

CancellationToken token

The to use to cancel the operation.

Returns
Type Description
Task<DnsMessage>

The DnsMessage result.

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX