DnsClientSendMessageAsync Method

Send a custom message to the dns server and returns the answer 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 Task<DnsMessage?> SendMessageAsync(
	DnsMessage message,
	CancellationToken token = default
)

Parameters

message  DnsMessage
Message, that should be send to the dns server
token  CancellationToken  (Optional)
The token to monitor cancellation requests

Return Value

TaskDnsMessage
The complete response of the dns server

See Also