Domain Detective

API Reference

Class

DnsMessage

Namespace DnsClientX
Assembly DnsClientX

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 requiredposition: 0
The name.
type DnsClientX.DnsRecordType requiredposition: 1
The type.
requestDnsSec System.Boolean requiredposition: 2
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 requiredposition: 0
Domain name to query.
type DnsClientX.DnsRecordType requiredposition: 1
Record type to query.
requestDnsSec System.Boolean requiredposition: 2
Whether DNSSEC records should be requested.
enableEdns System.Boolean requiredposition: 3
Enable EDNS OPT record.
udpBufferSize System.Int32 requiredposition: 4
UDP buffer size for EDNS.
subnet System.String requiredposition: 5
Optional EDNS client subnet.
checkingDisabled System.Boolean requiredposition: 6
Whether to set the CD bit in OPT TTL.
signingKey System.Security.Cryptography.AsymmetricAlgorithm requiredposition: 7
Optional key for DNS message signing.
options System.Collections.Generic.IEnumerable{DnsClientX.EdnsOption} = null optionalposition: 8
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 required
Domain name to query.
type DnsClientX.DnsRecordType required
Record type to query.
options DnsClientX.DnsMessageOptions required
Message options.

Methods

public Byte[] SerializeDnsWireFormat() #
Returns: Byte[]

Serializes the DNS wire format

public String ToBase64Url() #
Returns: String

Converts DNS message to base64url format

{{ include "footer" }}