Skip to content

Commit

Permalink
Update docs/README.md
Browse files Browse the repository at this point in the history
Co-authored-by: Marcin Rataj <[email protected]>
  • Loading branch information
martinheidegger and lidel authored Jun 25, 2022
1 parent e7481ce commit 62fe9d8
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,13 +92,9 @@ links.ipfs //...
links.hyper //...
```

#### Multiple values per key
#### Multiple values per namespace

Most dweb formats have a 1:1 relationship. For example, one domain is supposed to point to one `ipfs` resource. But some systems - like [multiaddr][] - may make use of multiple links to link more than one well-known peer. Other systems may add meta information. For that resason DNSLink clients need to return a list of links per `key`.

```js
Array.isArray(links.ipfs) // true if ipfs links are given.
```
Publishing more than one record for the same namespace is allowed by DNS clients and DNSLink libs and specs, but system responsible for processing those records is free to reject such state as invalid.

#### Sorting

Expand Down

0 comments on commit 62fe9d8

Please sign in to comment.