org.xbill.DNS.DNAMERecord Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of ddns-dnsjava Show documentation
Show all versions of ddns-dnsjava Show documentation
DiscoveryDNS fork of DNSJava project
// Copyright (c) 1999-2004 Brian Wellington ([email protected])
package org.xbill.DNS;
/**
* DNAME Record - maps a nonterminal alias (subtree) to a different domain
*
* @author Brian Wellington
*/
public class DNAMERecord extends SingleNameBase {
private static final long serialVersionUID = 2670767677200844154L;
DNAMERecord() {}
Record
getObject() {
return new DNAMERecord();
}
/**
* Creates a new DNAMERecord with the given data
* @param alias The name to which the DNAME alias points
*/
public
DNAMERecord(Name name, int dclass, long ttl, Name alias) {
super(name, Type.DNAME, dclass, ttl, alias, "alias");
}
/**
* Gets the target of the DNAME Record
*/
public Name
getTarget() {
return getSingleName();
}
/** Gets the alias specified by the DNAME Record */
public Name
getAlias() {
return getSingleName();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy