API Reference
Class
DnsRecordFactory
Factory to convert DnsAnswer into typed record objects.
Inheritance
- Object
- DnsRecordFactory
Methods
public static Object Create(DnsAnswer answer, Boolean parseTypedTxtRecords = false) #Returns:
ObjectParses an answer into a typed record if the type is known.
Parameters
- answer DnsClientX.DnsAnswer
- Answer to parse.
- parseTypedTxtRecords System.Boolean = false
- 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.