Record Class DnsData

java.lang.Object
java.lang.Record
com.digicert.validation.client.dns.DnsData
Record Components:
servers - The list of DNS servers queried.

This parameter holds the list of DNS servers that were contacted during the query process.

domain - The domain name that was queried.

This parameter specifies the domain name that was the target of the DNS query. It is used in conjunction with the DNS record type to form the complete query.

dnsType - The type of DNS record queried.

This parameter indicates the type of DNS record that was requested, such as A, CNAME, TXT, etc.

records - The list of DNS records retrieved.

This parameter contains the actual DNS records that were returned in response to the query. These records provide the requested information and are the primary result of the DNS query operation.

errors - The list of errors encountered during the DNS query.

This can be any of the DcvError values, but will generally be limited to DNS_LOOKUP* errors.

serverWithData - The DNS server that provided the data.

This parameter identifies the specific DNS server that ultimately provided the data for the query.


public record DnsData(List<String> servers, String domain, DnsType dnsType, List<org.xbill.DNS.Record> records, Set<DcvError> errors, String serverWithData) extends Record
DnsData is a record that encapsulates the results of a DNS query.

This record is designed to hold comprehensive information about a DNS query operation. It includes details about the DNS servers that were queried, the domain name that was the subject of the query, the type of DNS record that was requested, the actual DNS records that were retrieved, any errors that were encountered during the query process, and the specific DNS server that provided the data. This encapsulation allows for easy management and access to all relevant data pertaining to a DNS query.

  • Field Details

    • servers

      private final List<String> servers
      The field for the servers record component.
    • domain

      private final String domain
      The field for the domain record component.
    • dnsType

      private final DnsType dnsType
      The field for the dnsType record component.
    • records

      private final List<org.xbill.DNS.Record> records
      The field for the records record component.
    • errors

      private final Set<DcvError> errors
      The field for the errors record component.
    • serverWithData

      private final String serverWithData
      The field for the serverWithData record component.
  • Constructor Details

    • DnsData

      public DnsData(List<String> servers, String domain, DnsType dnsType, List<org.xbill.DNS.Record> records, Set<DcvError> errors, String serverWithData)
      Creates an instance of a DnsData record class.
      Parameters:
      servers - the value for the servers record component
      domain - the value for the domain record component
      dnsType - the value for the dnsType record component
      records - the value for the records record component
      errors - the value for the errors record component
      serverWithData - the value for the serverWithData record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • servers

      public List<String> servers()
      Returns the value of the servers record component.
      Returns:
      the value of the servers record component
    • domain

      public String domain()
      Returns the value of the domain record component.
      Returns:
      the value of the domain record component
    • dnsType

      public DnsType dnsType()
      Returns the value of the dnsType record component.
      Returns:
      the value of the dnsType record component
    • records

      public List<org.xbill.DNS.Record> records()
      Returns the value of the records record component.
      Returns:
      the value of the records record component
    • errors

      public Set<DcvError> errors()
      Returns the value of the errors record component.
      Returns:
      the value of the errors record component
    • serverWithData

      public String serverWithData()
      Returns the value of the serverWithData record component.
      Returns:
      the value of the serverWithData record component