Package org.xbill.DNS

Class NSRecord

java.lang.Object
org.xbill.DNS.Record
org.xbill.DNS.NSRecord
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Record>

public class NSRecord extends Record
Name Server Record - contains the name server serving the named zone
Author:
Brian Wellington
See Also:
  • Field Details

    • singleName

      protected Name singleName
  • Constructor Details

    • NSRecord

      public NSRecord(Name name, int dclass, long ttl, Name target)
      Creates a new NS Record with the given data
      Parameters:
      target - The name server for the given domain
  • Method Details

    • getTarget

      public Name getTarget()
      Gets the target of the NS Record
    • getAdditionalName

      public Name getAdditionalName()
      Description copied from class: Record
      Returns the name for which additional data processing should be done for this record. This can be used both for building responses and parsing responses.
      Overrides:
      getAdditionalName in class Record
      Returns:
      The name to used for additional data processing, or null if this record type does not require additional data processing.
    • rrToWire

      protected void rrToWire(DNSOutput out, Compression c, boolean canonical)
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden.
    • rrFromWire

      protected void rrFromWire(DNSInput in) throws IOException
      Description copied from class: Record
      Converts the type-specific RR to wire format - must be overridden
      Specified by:
      rrFromWire in class Record
      Throws:
      IOException
    • rdataFromString

      protected void rdataFromString(Tokenizer st, Name origin) throws IOException
      Description copied from class: Record
      Converts the text format of an RR to the internal format - must be overriden
      Specified by:
      rdataFromString in class Record
      Throws:
      IOException
    • rrToString

      protected String rrToString()
      Description copied from class: Record
      Converts the type-specific RR to text format - must be overridden.
      Specified by:
      rrToString in class Record
    • getSingleName

      protected Name getSingleName()