Class DnsRecord

java.lang.Object
africa.sendbyte.domains.DnsRecord

public final class DnsRecord extends Object
A DNS record you must publish to authenticate a sending domain, returned by Domains.create(String) and Domains.get(String).
  • Constructor Details

    • DnsRecord

      public DnsRecord()
  • Method Details

    • getType

      public String getType()
      DNS record type. Always TXT for the SPF, DKIM, and DMARC records.
    • setType

      public void setType(String type)
    • getHost

      public String getHost()
      The host/name to publish the record at, e.g. sb._domainkey.paylink.ng.
    • setHost

      public void setHost(String host)
    • getValue

      public String getValue()
      The exact TXT value to publish. Do not modify it.
    • setValue

      public void setValue(String value)
    • getPurpose

      public String getPurpose()
      The protocol this record serves: spf, dkim, or dmarc.
    • setPurpose

      public void setPurpose(String purpose)
    • isRequired

      public boolean isRequired()
      true if this record must be present for the domain to verify (SPF and DKIM).
    • setRequired

      public void setRequired(boolean required)