Type Alias ZoneData

ZoneData: {
    [T in StringRecordType]: string
} & {
    [T in OtherRecordType]: Buffer
} & {
    CAA: CaaData;
    DNSKEY: DnskeyData;
    DS: DsData;
    HINFO: HInfoData;
    MX: MxData;
    NAPTR: NaptrData;
    NSEC: NsecData;
    NSEC3: Nsec3Data;
    RP: RpData;
    RRSIG: RrsigData;
    SOA: SoaData;
    SRV: SrvData;
    SSHFP: SshfpData;
    TLSA: TlsaData;
    TXT: TxtData;
}

The dns-packet type definitions provide robust Answer and Type definitions, but do not provide Any means of expressing "Any kind of Data". This type definition is a union of all possible data types that can be returned in a DNS response.