Class CloudDnsWriter

    • Field Summary

      Fields 
      Modifier and Type Field Description
      static java.lang.String NAME
      The name of the dns writer, as used in Registry.dnsWriter.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected void commitUnchecked()
      Sync changes in a zone requested by publishDomain and publishHost to Cloud DNS.
      void publishDomain​(java.lang.String domainName)
      Publish the domain and all subordinate hosts.
      void publishHost​(java.lang.String hostName)
      Publish A/AAAA records to Cloud DNS.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • NAME

        public static final java.lang.String NAME
        The name of the dns writer, as used in Registry.dnsWriter. Remember to change the value on affected Registry objects to prevent runtime failures.
        See Also:
        Constant Field Values
    • Method Detail

      • publishDomain

        public void publishDomain​(java.lang.String domainName)
        Publish the domain and all subordinate hosts.
        Parameters:
        domainName - the fully qualified domain name, with no trailing dot
      • publishHost

        public void publishHost​(java.lang.String hostName)
        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 class BaseDnsWriter