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