Interface NameService
-
- All Known Implementing Classes:
MemoryNameService
public interface NameServiceA managed DNS service.- Author:
- mpolden
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.List<Record>createAlias(RecordName name, java.util.Set<AliasTarget> targets)Create a non-standard ALIAS record pointing to given targets.RecordcreateCname(RecordName name, RecordData canonicalName)Create a new CNAME recordjava.util.List<Record>createTxtRecords(RecordName name, java.util.List<RecordData> txtRecords)Create a new TXT record containing the provided data.java.util.List<Record>findRecords(Record.Type type, RecordData data)Find all records matching given type and datajava.util.List<Record>findRecords(Record.Type type, RecordName name)Find all records matching given type and namevoidremoveRecords(java.util.List<Record> record)Remove given record(s)voidupdateRecord(Record record, RecordData newData)Update existing record
-
-
-
Method Detail
-
createCname
Record createCname(RecordName name, RecordData canonicalName)
Create a new CNAME record- Parameters:
name- The alias to create (lhs of the record)canonicalName- The canonical name which the alias should point to (rhs of the record). This must be a FQDN.- Returns:
- The created record
-
createAlias
java.util.List<Record> createAlias(RecordName name, java.util.Set<AliasTarget> targets)
Create a non-standard ALIAS record pointing to given targets. Implementations of this can be expected to be idempotent- Parameters:
targets- Targets that should be resolved by this alias. pointing to given targets.- Returns:
- The created records. One for each target.
-
createTxtRecords
java.util.List<Record> createTxtRecords(RecordName name, java.util.List<RecordData> txtRecords)
Create a new TXT record containing the provided data.- Parameters:
name- Name of the created recordtxtRecords- TXT data values for the record, each consisting of one or more space-separated double-quoted strings: "string1" "string2"- Returns:
- The created records
-
findRecords
java.util.List<Record> findRecords(Record.Type type, RecordName name)
Find all records matching given type and name
-
findRecords
java.util.List<Record> findRecords(Record.Type type, RecordData data)
Find all records matching given type and data
-
updateRecord
void updateRecord(Record record, RecordData newData)
Update existing record
-
removeRecords
void removeRecords(java.util.List<Record> record)
Remove given record(s)
-
-