Home | History | Annotate | Download | only in DNS
      1 // Copyright (c) 1999-2004 Brian Wellington (bwelling (at) xbill.org)
      2 
      3 package org.xbill.DNS;
      4 
      5 /**
      6  * Mail Group Record  - specifies a mailbox which is a member of a mail group.
      7  *
      8  * @author Brian Wellington
      9  */
     10 
     11 public class MGRecord extends SingleNameBase {
     12 
     13 private static final long serialVersionUID = -3980055550863644582L;
     14 
     15 MGRecord() {}
     16 
     17 Record
     18 getObject() {
     19 	return new MGRecord();
     20 }
     21 
     22 /**
     23  * Creates a new MG Record with the given data
     24  * @param mailbox The mailbox that is a member of the group specified by the
     25  * domain.
     26  */
     27 public
     28 MGRecord(Name name, int dclass, long ttl, Name mailbox) {
     29 	super(name, Type.MG, dclass, ttl, mailbox, "mailbox");
     30 }
     31 
     32 /** Gets the mailbox in the mail group specified by the domain */
     33 public Name
     34 getMailbox() {
     35 	return getSingleName();
     36 }
     37 
     38 }
     39