1 // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3 package org.xbill.DNS;
4
5 /**
6 * Mailbox Record - specifies a host containing a mailbox.
7 *
8 * @author Brian Wellington
9 */
10
11 public class MBRecord extends SingleNameBase {
12
13 private static final long serialVersionUID = 532349543479150419L;
14
MBRecord()15 MBRecord() {}
16
17 Record
getObject()18 getObject() {
19 return new MBRecord();
20 }
21
22 /**
23 * Creates a new MB Record with the given data
24 * @param mailbox The host containing the mailbox for the domain.
25 */
26 public
MBRecord(Name name, int dclass, long ttl, Name mailbox)27 MBRecord(Name name, int dclass, long ttl, Name mailbox) {
28 super(name, Type.MB, dclass, ttl, mailbox, "mailbox");
29 }
30
31 /** Gets the mailbox for the domain */
32 public Name
getMailbox()33 getMailbox() {
34 return getSingleName();
35 }
36
37 public Name
getAdditionalName()38 getAdditionalName() {
39 return getSingleName();
40 }
41
42 }
43