Package org.xbill.DNS

Class SetResponse

java.lang.Object
org.xbill.DNS.SetResponse

public class SetResponse extends Object
Author:
Brian Wellington
See Also:
  • 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

      public List<RRset> answers()
      If the query was successful, return the answers
    • getCNAME

      public CNAMERecord getCNAME()
      If the query encountered a CNAME, return it.
    • getDNAME

      public DNAMERecord getDNAME()
      If the query encountered a DNAME, return it.
    • getNS

      public RRset getNS()
      If the query hit a delegation point, return the NS set.
    • toString

      public String toString()
      Prints the value of the SetResponse
      Overrides:
      toString in class Object