DnscontrolDomain
Overview
The DnscontrolDomain
class represents a domain managed by DNSControl. It collects providers, records, and other settings for a domain and outputs a configuration compatible with DNSControl.
Constructor
scope
: The parentDnscontrolStack
.id
: Unique identifier for the domain.props.domainName
: Domain name (required).props.tag
: Optional tag for the domain.- This tag is used for split horizon DNS.
props.registrar
: Registrar construct (optional).props.domainProviderPropsList
: List of provider properties (required).- Each item should be an instance of
DnscontrolDomainProviderProps
that specifies the provider name and optional nameserver count. - The provider name must match a registered
DnscontrolProvider
.
- Each item should be an instance of
props.defaultTtl
: Default TTL for records (optional).props.isEnabledAutoDnssec
: Enable DNSSEC (optional).props.isDisabledIgnoreSafetyCheck
: Disable safety check (optional).props.shouldKeepExistingRecord
: Keep unknown records (optional).props.parentNameservers
: Parent nameservers (optional).props.parentNameserverTtl
: TTL for parent nameservers (optional).props.route53ZoneId
: Route53 zone ID (optional).
Properties
domainName: string
tag?: string
registrarName: string
defaultTtl: Duration
isEnabledAutoDnssec?: boolean
isDisabledIgnoreSafetyCheck?: boolean
shouldKeepExistingRecord?: boolean
parentNameservers?: string[]
parentNameserverTtl?: Duration
route53ZoneId?: string
Methods
renderDomainConfig
isDnscontrolDomain
Type guard to check if an object is a DnscontrolDomain
.