Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

DnsRecord

import type { DnsRecord } from "https://googleapis.deno.dev/v1/firebasehosting:v1.ts";

DNS records are resource records that define how systems and services should behave when handling requests for a domain name. For example, when you add A records to your domain name's DNS records, you're informing other systems (such as your users' web browsers) to contact those IPv4 addresses to retrieve resources relevant to your domain name (such as your Hosting site files).

interface DnsRecord {
readonly domainName?: string;
readonly rdata?: string;
readonly requiredAction?: "NONE" | "ADD" | "REMOVE";
readonly type?:
| "TYPE_UNSPECIFIED"
| "A"
| "CNAME"
| "TXT"
| "AAAA"
| "CAA";
}

§Properties

§
readonly domainName?: string
[src]

Output only. The domain name the record pertains to, e.g. foo.bar.com..

§
readonly rdata?: string
[src]

Output only. The data of the record. The meaning of the value depends on record type: - A and AAAA: IP addresses for the domain name. - CNAME: Another domain to check for records. - TXT: Arbitrary text strings associated with the domain name. Hosting uses TXT records to determine which Firebase projects have permission to act on the domain name's behalf.

  • CAA: The record's flags, tag, and value, e.g. 0 issue "pki.goog".
§
readonly requiredAction?: "NONE" | "ADD" | "REMOVE"
[src]

Output only. An enum that indicates the a required action for this record.

§
readonly type?: "TYPE_UNSPECIFIED" | "A" | "CNAME" | "TXT" | "AAAA" | "CAA"
[src]

Output only. The record's type, which determines what data the record contains.