Skip to the content.

Interface: DNSKEYRecord

Defined in: src/types.ts:155

DNSKEY record - Contains a public key used for DNSSEC validation.

Example

const record: DNSKEYRecord = {
  type: "DNSKEY",
  flags: 257, // Key Signing Key
  protocol: 3,
  algorithm: 8, // RSA/SHA-256
  publicKey: "AwEAAag/59Q...",
  ttl: 86400,
};

Extends

Properties

ttl?

optional ttl?: number;

Defined in: src/types.ts:76

Time to live in seconds (optional)

Inherited from

BaseDNSRecord.ttl


algorithm

algorithm: number;

Defined in: src/types.ts:157

Cryptographic algorithm number


flags

flags: number;

Defined in: src/types.ts:159

Flags field (bit 7 = Zone Key, bit 15 = Secure Entry Point)


protocol

protocol: number;

Defined in: src/types.ts:161

Protocol field (always 3 for DNSSEC)


publicKey

publicKey: string;

Defined in: src/types.ts:163

Base64-encoded public key


type

type: "DNSKEY";

Defined in: src/types.ts:164

The type of DNS record

Overrides

BaseDNSRecord.type