API Reference
Class
DnsMessage
DnsMessage class
Inheritance
- Object
- DnsMessage
Constructors
DnsMessage 3 overloads
public DnsMessage(String name, DnsRecordType type, DnsMessageOptions options) #Initializes a new instance of the DnsMessage class.
Parameters
- name System.String
- The name.
- type DnsClientX.DnsRecordType
- The type.
- requestDnsSec System.Boolean
- if set to true [request DNS sec].
public DnsMessage(String name, DnsRecordType type, Boolean requestDnsSec, Boolean enableEdns, Int32 udpBufferSize, String subnet, Boolean checkingDisabled, AsymmetricAlgorithm signingKey, IEnumerable<EdnsOption> options = null) #Initializes a new instance of the DnsMessage class with advanced options.
Parameters
- name System.String
- Domain name to query.
- type DnsClientX.DnsRecordType
- Record type to query.
- requestDnsSec System.Boolean
- Whether DNSSEC records should be requested.
- enableEdns System.Boolean
- Enable EDNS OPT record.
- udpBufferSize System.Int32
- UDP buffer size for EDNS.
- subnet System.String
- Optional EDNS client subnet.
- checkingDisabled System.Boolean
- Whether to set the CD bit in OPT TTL.
- signingKey System.Security.Cryptography.AsymmetricAlgorithm
- Optional key for DNS message signing.
- options System.Collections.Generic.IEnumerable{DnsClientX.EdnsOption} = null
- Additional EDNS options.
DnsMessage(System.String name, DnsClientX.DnsRecordType type, DnsClientX.DnsMessageOptions options) #Initializes a new instance of the DnsMessage class with structured options.
Parameters
- name System.String
- Domain name to query.
- type DnsClientX.DnsRecordType
- Record type to query.
- options DnsClientX.DnsMessageOptions
- Message options.