Constructors
constructor
- new DnsRecord(name, typeIdOrName, classIdOrName, ttl, data): DnsRecord
Parameters
name: string
ttl: number
data: unknown
Properties
Readonly dataFields
dataFields: any
Readonly dataSerialised
dataSerialised: Buffer
Readonly name
name: string
Readonly typeId
typeId: number
Methods
serialise
- serialise(ttl?): Buffer
Parameters
ttl: null | number = null
Returns Buffer
shallowCopy
- shallowCopy(partialRecord): DnsRecord
Parameters
partialRecord: Partial<RecordFields>
A "raw" DNS record with its data unserialised.
We're using the
Dnsprefix to avoid shadowing the TypeScript typeRecord.