DnsQuestion Class
Represents a DNS question in the question section of a DNS message.
public sealed class DnsQuestionConstructors
| Name | Description |
|---|---|
| DnsQuestion(string, DnsQueryType, DnsQueryClass) | Initializes a new instance of the DnsQuestion class. |
DnsQuestion(string, DnsQueryType, DnsQueryClass)
DnsQuestion.csInitializes a new instance of the DnsQuestion class.
public DnsQuestion(string name, DnsQueryType type, DnsQueryClass queryClass = DnsQueryClass.IN)Parameters
namestring- The domain name to query.
typeDnsQueryType- The DNS record type to query.
queryClassDnsQueryClass- The DNS query class.
Properties
| Name | Description |
|---|---|
| Name | Gets the domain name being queried. |
| QueryClass | Gets the DNS class being queried. |
| Type | Gets the DNS record type being queried. |