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
DnscontrolDomainProviderPropsthat 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: stringtag?: stringregistrarName: stringdefaultTtl: DurationisEnabledAutoDnssec?: booleanisDisabledIgnoreSafetyCheck?: booleanshouldKeepExistingRecord?: booleanparentNameservers?: string[]parentNameserverTtl?: Durationroute53ZoneId?: string
Methods
renderDomainConfig
isDnscontrolDomain
Type guard to check if an object is a DnscontrolDomain.