org.xbill.DNS
Class NSRecord

java.lang.Object
  extended byorg.xbill.DNS.Record
      extended byorg.xbill.DNS.NS_CNAME_PTRRecord
          extended byorg.xbill.DNS.NSRecord
All Implemented Interfaces:
Cloneable, Comparable

public class NSRecord
extends NS_CNAME_PTRRecord

Name Server Record - contains the name server serving the named zone

Author:
Brian Wellington

Field Summary
 
Fields inherited from class org.xbill.DNS.NS_CNAME_PTRRecord
target
 
Fields inherited from class org.xbill.DNS.Record
dclass, name, ttl, type
 
Constructor Summary
NSRecord(Name name, int dclass, int ttl, Name target)
          Creates a new NS Record with the given data
 
Method Summary
 Name getAdditionalName()
          Returns the name for which additional data processing should be done for this record.
 
Methods inherited from class org.xbill.DNS.NS_CNAME_PTRRecord
getTarget, rdataFromString, rdataToString, rrFromWire
 
Methods inherited from class org.xbill.DNS.Record
byteArrayFromString, byteArrayToString, compareTo, equals, fromString, fromString, fromWire, getDClass, getName, getRRsetType, getTTL, getType, hashCode, newRecord, newRecord, newRecord, newRecord, rdataToWireCanonical, remainingStrings, toString, toWire, toWireCanonical, withName
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NSRecord

public NSRecord(Name name,
                int dclass,
                int ttl,
                Name target)
Creates a new NS Record with the given data

Parameters:
target - The name server for the given domain
Method Detail

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.