Domain Detective

API Reference

Class

DnsRecordFactory

Namespace DnsClientX
Assembly DnsClientX
Modifiers static

Factory to convert DnsAnswer into typed record objects.

Inheritance

  • Object
  • DnsRecordFactory

Methods

public static Object Create(DnsAnswer answer, Boolean parseTypedTxtRecords = false) #
Returns: Object

Parses an answer into a typed record if the type is known.

Parameters

answer DnsClientX.DnsAnswer requiredposition: 0
Answer to parse.
parseTypedTxtRecords System.Boolean = false optionalposition: 1
Whether to parse TXT records into specialized types (DMARC, SPF, etc.). When false, returns simple TXT records.

Returns

Typed record instance or null if the type is not supported.

{{ include "footer" }}