Interface NameService
- All Known Implementing Classes:
MemoryNameService
public interface NameService
A managed DNS service.
- Author:
- mpolden
-
Method Summary
Modifier and TypeMethodDescriptioncreateAlias(RecordName name, Set<AliasTarget> targets) Create a non-standard ALIAS record pointing to given targets.createDirect(RecordName name, Set<DirectTarget> targets) Create a non-standard record pointing to given targets.createRecord(Record.Type type, RecordName name, RecordData data) Create a new recordcreateTxtRecords(RecordName name, List<RecordData> txtRecords) Create a new TXT record containing the provided data.findRecords(Record.Type type, RecordData data) Find all records matching given type and datafindRecords(Record.Type type, RecordName name) Find all records matching given type and namevoidremoveRecords(List<Record> record) Remove given record(s)voidupdateRecord(Record record, RecordData newData) Update existing record
-
Method Details
-
createRecord
Create a new record- Parameters:
type- The DNS type of record to make, only a small set of types are supported, check with the implementationname- Name of the record, e.g. a FQDN for records of type Adata- Data of the record, e.g. IP address for records of type A- Returns:
- The created record
-
createAlias
Create a non-standard ALIAS record pointing to given targets. Implementations of this are expected to be idempotent- Parameters:
targets- Targets that should be resolved by this name.- Returns:
- The created records. One per target.
-
createDirect
Create a non-standard record pointing to given targets. Implementations of this are expected to be idempotent- Parameters:
targets- Targets that should be resolved by this name.- Returns:
- The created records. One per target.
-
createTxtRecords
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
Find all records matching given type and name -
findRecords
Find all records matching given type and data -
updateRecord
Update existing record -
removeRecords
Remove given record(s)
-