• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 1999-2004 Brian Wellington (bwelling@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 
NSRecord()15 NSRecord() {}
16 
17 Record
getObject()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
NSRecord(Name name, int dclass, long ttl, Name target)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
getTarget()33 getTarget() {
34 	return getSingleName();
35 }
36 
37 public Name
getAdditionalName()38 getAdditionalName() {
39 	return getSingleName();
40 }
41 
42 }
43