Domain Detective

API Reference

Class

DnsWireMessageParser

Namespace DnsClientX
Assembly DnsClientX
Modifiers static

Provides lightweight, safe parsing helpers for DNS wire-format messages.

Inheritance

  • Object
  • DnsWireMessageParser

Methods

public static Boolean TryParseEdns(Byte[] data, out DnsWireEdnsInfo edns) #
Returns: Boolean

Attempts to locate an EDNS OPT record and extract the advertised UDP payload size.

Parameters

data System.Byte[] requiredposition: 0
Raw DNS message bytes.
edns DnsClientX.DnsWireEdnsInfo@ requiredposition: 1
Parsed EDNS info.

Returns

true when parsing succeeded (even if EDNS is not present); otherwise false for malformed messages.

public static Boolean TryParseHeader(Byte[] data, out DnsWireHeaderInfo header) #
Returns: Boolean

Attempts to parse the DNS message header (flags and section counts).

Parameters

data System.Byte[] requiredposition: 0
Raw DNS message bytes.
header DnsClientX.DnsWireHeaderInfo@ requiredposition: 1
Parsed header fields.

Returns

true when the header was parsed; otherwise false.

{{ include "footer" }}