DnsRequestContext Class
Provides context for a DNS request being handled.
public sealed class DnsRequestContextProperties
| Name | Description |
|---|---|
| Protocol | Gets the transport protocol used for this request. |
| Query | Gets the incoming DNS query message. |
| RemoteEndPoint | Gets the remote endpoint of the client. |
Protocol
DnsRequestContext.csGets the transport protocol used for this request.
public DnsServerProtocol Protocol { get; }Property value
Query
DnsRequestContext.csRemoteEndPoint
DnsRequestContext.csMethods
| Name | Description |
|---|---|
| CreateResponse() | Creates a response message pre-populated with the query's ID, questions, and standard response flags. |
CreateResponse()
DnsRequestContext.csCreates a response message pre-populated with the query's ID, questions, and standard response flags.
public DnsMessage CreateResponse()