Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package org.xbill.DNS;
      4 
      5 /**
      6  * Name Server Record  - contains the name server serving the named zone
      7  *
      8  * @author Brian Wellington
      9  */
     10 
     11 public class NSRecord extends SingleCompressedNameBase {
     12 
     13 private static final long serialVersionUID = 487170758138268838L;
     14 
     15 NSRecord() {}
     16 
     17 Record
     18 getObject() {
     19 	return new NSRecord();
     20 }
     21 
     22 /**
     23  * Creates a new NS Record with the given data
     24  * @param target The name server for the given domain
     25  */
     26 public
     27 NSRecord(Name name, int dclass, long ttl, Name target) {
     28 	super(name, Type.NS, dclass, ttl, target, "target");
     29 }
     30 
     31 /** Gets the target of the NS Record */
     32 public Name
     33 getTarget() {
     34 	return getSingleName();
     35 }
     36 
     37 public Name
     38 getAdditionalName() {
     39 	return getSingleName();
     40 }
     41 
     42 }
     43