Skip to the content.

Interface: CNAMERecord

Defined in: src/types.ts:131

CNAME record - Maps an alias name to the canonical domain name.

Example

const record: CNAMERecord = {
  type: "CNAME",
  value: "canonical.example.com",
  ttl: 300,
};

Extends

Properties

ttl?

optional ttl?: number;

Defined in: src/types.ts:76

Time to live in seconds (optional)

Inherited from

BaseDNSRecord.ttl


type

type: "CNAME";

Defined in: src/types.ts:132

The type of DNS record

Overrides

BaseDNSRecord.type


value

value: string;

Defined in: src/types.ts:134

The canonical domain name