1// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * Name Server Record  - contains the name server serving the named zone
7 *
8 * @author Brian Wellington
9 */
10
11public class NSRecord extends SingleCompressedNameBase {
12
13private static final long serialVersionUID = 487170758138268838L;
14
15NSRecord() {}
16
17Record
18getObject() {
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 */
26public
27NSRecord(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 */
32public Name
33getTarget() {
34	return getSingleName();
35}
36
37public Name
38getAdditionalName() {
39	return getSingleName();
40}
41
42}
43