blob: ff293d7ef372a96aa642e88f59e9883dd15dcec2 [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 Forwarder Record - specifies a mail agent which forwards mail
7 * for a domain (obsolete)
8 *
9 * @author Brian Wellington
10 */
11
12public class MFRecord extends SingleNameBase {
13
14private static final long serialVersionUID = -6670449036843028169L;
15
16MFRecord() {}
17
18Record
19getObject() {
20 return new MFRecord();
21}
22
23/**
24 * Creates a new MF Record with the given data
25 * @param mailAgent The mail agent that forwards mail for the domain.
26 */
27public
28MFRecord(Name name, int dclass, long ttl, Name mailAgent) {
29 super(name, Type.MF, 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}