aboutsummaryrefslogtreecommitdiff
path: root/src/org/xbill/DNS/NSRecord.java
blob: 2908da4d04290995039cb596fc5b445263deb058 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)

package org.xbill.DNS;

/**
 * Name Server Record  - contains the name server serving the named zone
 *
 * @author Brian Wellington
 */

public class NSRecord extends SingleCompressedNameBase {

private static final long serialVersionUID = 487170758138268838L;

NSRecord() {}

Record
getObject() {
	return new NSRecord();
}

/** 
 * Creates a new NS Record with the given data
 * @param target The name server for the given domain
 */
public
NSRecord(Name name, int dclass, long ttl, Name target) {
	super(name, Type.NS, dclass, ttl, target, "target");
}

/** Gets the target of the NS Record */
public Name
getTarget() {
	return getSingleName();
}

public Name
getAdditionalName() {
	return getSingleName();
}

}