diff options
Diffstat (limited to 'src/org/xbill/DNS/NSRecord.java')
-rw-r--r-- | src/org/xbill/DNS/NSRecord.java | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/org/xbill/DNS/NSRecord.java b/src/org/xbill/DNS/NSRecord.java new file mode 100644 index 0000000..2908da4 --- /dev/null +++ b/src/org/xbill/DNS/NSRecord.java @@ -0,0 +1,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(); +} + +} |