Class CloudDnsWriter
java.lang.Object
google.registry.dns.writer.BaseDnsWriter
google.registry.dns.writer.clouddns.CloudDnsWriter
- All Implemented Interfaces:
DnsWriter
DnsWriter
implementation that talks to Google Cloud DNS.- See Also:
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Sync changes in a zone requested by publishDomain and publishHost to Cloud DNS.void
publishDomain
(String domainName) Publish the domain and all subordinate hosts.void
publishHost
(String hostName) Publish A/AAAA records to Cloud DNS.Methods inherited from class google.registry.dns.writer.BaseDnsWriter
commit
-
Field Details
-
NAME
The name of the dns writer, as used inRegistry.dnsWriter
. Remember to change the value on affected Registry objects to prevent runtime failures.- See Also:
-
-
Method Details
-
publishDomain
Publish the domain and all subordinate hosts.- Parameters:
domainName
- the fully qualified domain name, with no trailing dot
-
publishHost
Publish A/AAAA records to Cloud DNS.Cloud DNS has no API for glue -- A/AAAA records are automatically matched to their corresponding NS records to serve glue.
- Parameters:
hostName
- the fully qualified host name, with no trailing dot
-
commitUnchecked
protected void commitUnchecked()Sync changes in a zone requested by publishDomain and publishHost to Cloud DNS.The zone for the TLD must exist first in Cloud DNS and must be DNSSEC enabled.
The relevant resource records (including those of all subordinate hosts) will be retrieved and the operation will be retried until the state of the retrieved zone data matches the representation built via this writer.
- Specified by:
commitUnchecked
in classBaseDnsWriter
-