Converts a string representation of a DNS record type to the corresponding DNSRecordType enum value.
If the input string does not match any valid DNS record type, it returns undefined.
Parameters
Optionaltype: string
The string representation of the DNS record type (e.g., "A", "AAAA", "MX").
Converts a string representation of a DNS record type to the corresponding
DNSRecordTypeenum value. If the input string does not match any valid DNS record type, it returnsundefined.