org.xbill.DNS.ZONECNAMERecord 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
package org.xbill.DNS;
/**
* ZONECNAMERecord Record - maps a zone alias to its real name
*
* @author Arnaud Dumont
*/
public class ZONECNAMERecord extends SingleCompressedNameBase {
private static final long serialVersionUID = 3251461466067595466L;
ZONECNAMERecord() {}
@Override
Record getObject() {
return new ZONECNAMERecord();
}
/**
* Creates a new ZONECNAMERecord with the given data
* @param alias The name to which the ZONECNAMERecord alias points
*/
public ZONECNAMERecord(Name name, int dclass, long ttl, Name alias) {
super(name, Type.ZONECNAME, dclass, ttl, alias, "alias");
}
/**
* Gets the target of the ZONECNAMERecord Record
*/
public Name getTarget() {
return getSingleName();
}
/** Gets the alias specified by the ZONECNAMERecord Record */
public Name getAlias() {
return getSingleName();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy