blob: 6b65edf48703ec8f619e5b2915ad6f5329aa96e5 [file] [log] [blame]
Shuyi Chend7955ce2013-05-22 14:51:55 -07001// Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3package org.xbill.DNS;
4
5/**
6 * Mailbox Record - specifies a host containing a mailbox.
7 *
8 * @author Brian Wellington
9 */
10
11public class MBRecord extends SingleNameBase {
12
13private static final long serialVersionUID = 532349543479150419L;
14
15MBRecord() {}
16
17Record
18getObject() {
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 */
26public
27MBRecord(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 */
32public Name
33getMailbox() {
34 return getSingleName();
35}
36
37public Name
38getAdditionalName() {
39 return getSingleName();
40}
41
42}