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/firebaseapphosting:v1.ts";

A representation of a DNS records for a domain. DNS records are resource records that define how systems and services should behave when handling requests for a domain. For example, when you add A records to your domain'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 (such as your App Hosting files).

interface DnsRecord {
readonly domainName?: string;
readonly rdata?: string;
readonly relevantState?:
| "CUSTOM_DOMAIN_STATE_UNSPECIFIED"
| "HOST_STATE"
| "OWNERSHIP_STATE"
| "CERT_STATE"[];
readonly requiredAction?: "NONE" | "ADD" | "REMOVE";
readonly type?:
| "TYPE_UNSPECIFIED"
| "A"
| "CNAME"
| "TXT"
| "AAAA"
| "CAA";
}

§Properties

§
readonly domainName?: string
[src]

Output only. The domain 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. - CNAME: Another domain to check for records. - TXT: Arbitrary text strings associated with the domain. App Hosting uses TXT records to determine which Firebase projects have permission to act on the domain's behalf. - CAA: The record's flags, tag, and value, e.g. 0 issue "pki.goog".

§
readonly relevantState?: "CUSTOM_DOMAIN_STATE_UNSPECIFIED" | "HOST_STATE" | "OWNERSHIP_STATE" | "CERT_STATE"[]
[src]

Output only. An enum that indicates which state(s) this DNS record applies to. Populated for all records with an ADD or REMOVE required action.

§
readonly requiredAction?: "NONE" | "ADD" | "REMOVE"
[src]

Output only. An enum that indicates the a required action for this record. Populated when the record is part of a required change in a DnsUpdates discovered or desired record set.

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

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