blob: dbf51af97caa5b322e114ae88015b938f0e87894 [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 * Mail Destination Record - specifies a mail agent which delivers mail
7 * for a domain (obsolete)
8 *
9 * @author Brian Wellington
10 */
11
12public class MDRecord extends SingleNameBase {
13
14private static final long serialVersionUID = 5268878603762942202L;
15
16MDRecord() {}
17
18Record
19getObject() {
20 return new MDRecord();
21}
22
23/**
24 * Creates a new MD Record with the given data
25 * @param mailAgent The mail agent that delivers mail for the domain.
26 */
27public
28MDRecord(Name name, int dclass, long ttl, Name mailAgent) {
29 super(name, Type.MD, dclass, ttl, mailAgent, "mail agent");
30}
31
32/** Gets the mail agent for the domain */
33public Name
34getMailAgent() {
35 return getSingleName();
36}
37
38public Name
39getAdditionalName() {
40 return getSingleName();
41}
42
43}