01: // Copyright (c) 1999-2004 Brian Wellington (bwelling@xbill.org)
02:
03: package org.xbill.DNS;
04:
05: /**
06: * Mail Destination Record - specifies a mail agent which delivers mail
07: * for a domain (obsolete)
08: *
09: * @author Brian Wellington
10: */
11:
12: public class MDRecord extends SingleNameBase {
13:
14: MDRecord() {
15: }
16:
17: Record getObject() {
18: return new MDRecord();
19: }
20:
21: /**
22: * Creates a new MD Record with the given data
23: * @param mailAgent The mail agent that delivers mail for the domain.
24: */
25: public MDRecord(Name name, int dclass, long ttl, Name mailAgent) {
26: super (name, Type.MD, dclass, ttl, mailAgent, "mail agent");
27: }
28:
29: /** Gets the mail agent for the domain */
30: public Name getMailAgent() {
31: return getSingleName();
32: }
33:
34: public Name getAdditionalName() {
35: return getSingleName();
36: }
37:
38: }
|