Package org.xbill.DNS
Class Update
java.lang.Object
org.xbill.DNS.Message
org.xbill.DNS.Update
- All Implemented Interfaces:
Cloneable
A helper class for constructing dynamic DNS (DDNS) update messages.
- Author:
- Brian Wellington
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidInserts a prerequisite that the specified name does not exist; that is, there are no records with the given name in the zone.voidInserts a prerequisite that the specified rrset does not exist; that is, there are no records with the given name and type in the zone.voidParses a record from the string, and indicates that the record should be inserted into the zone.voidParses a record from the tokenizer, and indicates that the record should be inserted into the zone.voidIndicates that the record should be inserted into the zone.voidIndicates that the records should be inserted into the zone.<T extends Record>
voidIndicates that all of the records in the rrset should be inserted into the zone.voidIndicates that all records with the given name should be deleted from the zone.voidIndicates that all records with the given name and type should be deleted from the zone.voidParses a record from the string, and indicates that the record should be deleted from the zone.voidParses a record from the tokenizer, and indicates that the record should be deleted from the zone.voidIndicates that the specified record should be deleted from the zone.voidIndicates that the records should be deleted from the zone.<T extends Record>
voidIndicates that all of the records in the rrset should be deleted from the zone.voidInserts a prerequisite that the specified name exists; that is, there exist records with the given name in the zone.voidInserts a prerequisite that the specified rrset exists; that is, there exist records with the given name and type in the zone.voidParses a record from the string, and inserts a prerequisite that the record exists.voidParses a record from the tokenizer, and inserts a prerequisite that the record exists.voidInserts a prerequisite that the specified record exists.voidParses a record from the string, and indicates that the record should be inserted into the zone replacing any other records with the same name and type.voidParses a record from the tokenizer, and indicates that the record should be inserted into the zone replacing any other records with the same name and type.voidIndicates that the record should be inserted into the zone replacing any other records with the same name and type.voidIndicates that the records should be inserted into the zone replacing any other records with the same name and type as each one.<T extends Record>
voidIndicates that all of the records in the rrset should be inserted into the zone replacing any other records with the same name and type.Methods inherited from class org.xbill.DNS.Message
addRecord, clone, findRecord, findRecord, findRRset, findRRset, getHeader, getOPT, getQuestion, getRcode, getResolver, getSection, getSectionArray, getSectionRRsets, getTSIG, isSigned, isVerified, newQuery, newUpdate, normalize, normalize, numBytes, removeAllRecords, removeRecord, sectionToString, setHeader, setResolver, setTSIG, setTSIG, toString, toWire, toWire
-
Constructor Details
-
Update
Creates an update message.- Parameters:
zone- The name of the zone being updated.dclass- The class of the zone being updated.
-
Update
Creates an update message. The class is assumed to be IN.- Parameters:
zone- The name of the zone being updated.
-
-
Method Details
-
present
Inserts a prerequisite that the specified name exists; that is, there exist records with the given name in the zone. -
present
Inserts a prerequisite that the specified rrset exists; that is, there exist records with the given name and type in the zone. -
present
Parses a record from the string, and inserts a prerequisite that the record exists. Due to the way value-dependent prequisites work, the condition that must be met is that the set of all records with the same and type in the update message must be identical to the set of all records with that name and type on the server.- Throws:
IOException- The record could not be parsed.
-
present
Parses a record from the tokenizer, and inserts a prerequisite that the record exists. Due to the way value-dependent prequisites work, the condition that must be met is that the set of all records with the same and type in the update message must be identical to the set of all records with that name and type on the server.- Throws:
IOException- The record could not be parsed.
-
present
Inserts a prerequisite that the specified record exists. Due to the way value-dependent prequisites work, the condition that must be met is that the set of all records with the same and type in the update message must be identical to the set of all records with that name and type on the server. -
absent
Inserts a prerequisite that the specified name does not exist; that is, there are no records with the given name in the zone. -
absent
Inserts a prerequisite that the specified rrset does not exist; that is, there are no records with the given name and type in the zone. -
add
Parses a record from the string, and indicates that the record should be inserted into the zone.- Throws:
IOException- The record could not be parsed.
-
add
Parses a record from the tokenizer, and indicates that the record should be inserted into the zone.- Throws:
IOException- The record could not be parsed.
-
add
Indicates that the record should be inserted into the zone. -
add
Indicates that the records should be inserted into the zone. -
add
Indicates that all of the records in the rrset should be inserted into the zone. -
delete
Indicates that all records with the given name should be deleted from the zone. -
delete
Indicates that all records with the given name and type should be deleted from the zone. -
delete
Parses a record from the string, and indicates that the record should be deleted from the zone.- Throws:
IOException- The record could not be parsed.
-
delete
Parses a record from the tokenizer, and indicates that the record should be deleted from the zone.- Throws:
IOException- The record could not be parsed.
-
delete
Indicates that the specified record should be deleted from the zone. -
delete
Indicates that the records should be deleted from the zone. -
delete
Indicates that all of the records in the rrset should be deleted from the zone. -
replace
Parses a record from the string, and indicates that the record should be inserted into the zone replacing any other records with the same name and type.- Throws:
IOException- The record could not be parsed.
-
replace
Parses a record from the tokenizer, and indicates that the record should be inserted into the zone replacing any other records with the same name and type.- Throws:
IOException- The record could not be parsed.
-
replace
Indicates that the record should be inserted into the zone replacing any other records with the same name and type. -
replace
Indicates that the records should be inserted into the zone replacing any other records with the same name and type as each one. -
replace
Indicates that all of the records in the rrset should be inserted into the zone replacing any other records with the same name and type.
-