All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.couchbase.client.core.deps.org.xbill.DNS.MDRecord Maven / Gradle / Ivy

There is a newer version: 3.7.2
Show newest version
// SPDX-License-Identifier: BSD-3-Clause
// Copyright (c) 1999-2004 Brian Wellington ([email protected])

package com.couchbase.client.core.deps.org.xbill.DNS;

/**
 * Mail Destination Record - specifies a mail agent which delivers mail for a domain (obsolete)
 *
 * @author Brian Wellington
 * @see RFC 973: Domain System Changes and
 *     Observations
 */
public class MDRecord extends SingleNameBase {
  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();
  }

  @Override
  public Name getAdditionalName() {
    return getSingleName();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy