DNS(Distributed Name Service) is a distributed, open source and extensible domain name mapping service based on smart contracts. Gradually change the data storage paths and extension protocols used by the system to words and abbreviations. Map specific service entities such as addresses, paths, id, content, etc. that can be marked in the layer2 network into a set of naming rules to achieve the reachability of the ecological services within the layer2 network.
- Data sharing path mapping
- Custom protocol extension
- Account mapping
Examples
dsp://urlformultiservices
dsp:header
urlformultiservices:sharing url
Naming examples
Header: protocol
URL: link
Name : source path
Owner: owner
Description:name description
BlockHeight:create height
TTL: Expiration date
- Registration service
- Management Service
- Inquiry service
The registration service is responsible for generating connections according to different registration methods, while storing the name owner, TTL and other content. Interfaces:
- Default mode: Use the default protocol and generate url randomly
- Custom protocol mode: Use custom protocol and generate url randomly
- Custom url mode: Use the default protocol and attach a custom url
- Naming mode: both protocol and url are customized
- Register a new header
- Each registered header has an expiration date
- Can't register system reservation header
- Register the header mainly in the community governance mode
- Provide services for the transfer, update and deletion of url / header.
- Management of url / header, which requires name creator or service management account permissions.
Service mode
- Transfer: transfer the ownership of the url / header, the account with ownership can update and delete the url / header
- Update: update url mapping object path
- Delete: delete the url / header. If a header is deleted or expires, all links named by the header cannot be resolved析
Query the mapping information, owner and TTL stored during header / url registration