1 // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
2
3 package 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
12 public class MDRecord extends SingleNameBase {
13
14 private static final long serialVersionUID = 5268878603762942202L;
15
MDRecord()16 MDRecord() {}
17
18 Record
getObject()19 getObject() {
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 */
27 public
MDRecord(Name name, int dclass, long ttl, Name mailAgent)28 MDRecord(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 */
33 public Name
getMailAgent()34 getMailAgent() {
35 return getSingleName();
36 }
37
38 public Name
getAdditionalName()39 getAdditionalName() {
40 return getSingleName();
41 }
42
43 }
44