Record Class 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.
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final DnsType
The field for thednsType
record component.private final String
The field for thedomain
record component.The field for theerrors
record component.private final List
<org.xbill.DNS.Record> The field for therecords
record component.The field for theservers
record component.private final String
The field for theserverWithData
record component. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondnsType()
Returns the value of thednsType
record component.domain()
Returns the value of thedomain
record component.final boolean
Indicates whether some other object is "equal to" this one.errors()
Returns the value of theerrors
record component.final int
hashCode()
Returns a hash code value for this object.List
<org.xbill.DNS.Record> records()
Returns the value of therecords
record component.servers()
Returns the value of theservers
record component.Returns the value of theserverWithData
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
servers
The field for theservers
record component. -
domain
The field for thedomain
record component. -
dnsType
The field for thednsType
record component. -
records
The field for therecords
record component. -
errors
The field for theerrors
record component. -
serverWithData
The field for theserverWithData
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 aDnsData
record class.- Parameters:
servers
- the value for theservers
record componentdomain
- the value for thedomain
record componentdnsType
- the value for thednsType
record componentrecords
- the value for therecords
record componenterrors
- the value for theerrors
record componentserverWithData
- the value for theserverWithData
record component
-
-
Method Details
-
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. -
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. -
equals
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 withObjects::equals(Object,Object)
. -
servers
Returns the value of theservers
record component.- Returns:
- the value of the
servers
record component
-
domain
Returns the value of thedomain
record component.- Returns:
- the value of the
domain
record component
-
dnsType
Returns the value of thednsType
record component.- Returns:
- the value of the
dnsType
record component
-
records
Returns the value of therecords
record component.- Returns:
- the value of the
records
record component
-
errors
Returns the value of theerrors
record component.- Returns:
- the value of the
errors
record component
-
serverWithData
Returns the value of theserverWithData
record component.- Returns:
- the value of the
serverWithData
record component
-