Package org.xbill.DNS
Class SetResponse
java.lang.Object
org.xbill.DNS.SetResponse
The Response from a query to
Cache.lookupRecords(Name, int, int) or Zone.findRecords(Name, int).- Author:
- Brian Wellington
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionanswers()If the query was successful, return the answersgetCNAME()If the query encountered a CNAME, return it.getDNAME()If the query encountered a DNAME, return it.getNS()If the query hit a delegation point, return the NS set.booleanisCNAME()Is the result of the lookup a CNAME?booleanIs the result of the lookup that the name is below a delegation?booleanisDNAME()Is the result of the lookup a DNAME?booleanIs the answer to the query that the name does not exist?booleanIs the answer to the query that the name exists, but the type does not?booleanWas the query successful?booleanIs the answer to the query unknown?toString()Prints the value of the SetResponse
-
Method Details
-
isUnknown
public boolean isUnknown()Is the answer to the query unknown? -
isNXDOMAIN
public boolean isNXDOMAIN()Is the answer to the query that the name does not exist? -
isNXRRSET
public boolean isNXRRSET()Is the answer to the query that the name exists, but the type does not? -
isDelegation
public boolean isDelegation()Is the result of the lookup that the name is below a delegation? -
isCNAME
public boolean isCNAME()Is the result of the lookup a CNAME? -
isDNAME
public boolean isDNAME()Is the result of the lookup a DNAME? -
isSuccessful
public boolean isSuccessful()Was the query successful? -
answers
If the query was successful, return the answers -
getCNAME
If the query encountered a CNAME, return it. -
getDNAME
If the query encountered a DNAME, return it. -
getNS
If the query hit a delegation point, return the NS set. -
toString
Prints the value of the SetResponse
-