mirror of
https://github.com/nostr-protocol/nips.git
synced 2024-12-22 08:25:53 -05:00
Adds TTL do A records.
This commit is contained in:
parent
d3cf4399c9
commit
91fc187468
9
97.md
9
97.md
|
@ -14,9 +14,9 @@ Event `30053` defines a DNS record for Nostr. `ip4` and `ip6` tags represent DNS
|
|||
"tags": [
|
||||
["d", "<subdomain-like-name or empty for root>"],
|
||||
|
||||
["ip4", "230.22.120.232"],
|
||||
["ip4", "230.22.120.233"], // mirrored servers / client-based load balancing
|
||||
["ip4", "230.22.120.234"], // mirrored servers / client-based load balancing
|
||||
["ip4", "230.22.120.232", "<time-to-live in seconds>"],
|
||||
["ip4", "230.22.120.233", "<time-to-live in seconds>"], // mirrored servers / client-based load balancing
|
||||
["ip4", "230.22.120.234", "<time-to-live in seconds>"], // mirrored servers / client-based load balancing
|
||||
|
||||
["ip6", "FE80:0000:0000:0000:0202:B3FF:FE1E:8329"] // same content as ipv4
|
||||
],
|
||||
|
@ -44,7 +44,7 @@ Clients SHOULD intercept the DNS resolution of any `naddr1` domain name and reso
|
|||
|
||||
If the NNS event cannot be found locally, Clients SHOULD in parallel:
|
||||
1. Connect to the IP in the `relay` field of the `naddr1` to download a potentially outdated version of the NNS record.
|
||||
2. Retrieve the latest version of this replaceable from the (NIP-65)[65.md] WRITE relays of the `naddr1`'s pubkey.
|
||||
2. Retrieve the latest version of this replaceable from the [NIP-65](65.md) WRITE relays of the `naddr1`'s pubkey.
|
||||
|
||||
# HTTP URLs (Media Servers)
|
||||
|
||||
|
@ -53,6 +53,7 @@ Clients SHOULD use the NNS address (e.g. `http://naddr1...ccpzu/<rest of the url
|
|||
For example, this loads an image without a domain name:
|
||||
|
||||
```js
|
||||
{
|
||||
"kind": 1,
|
||||
"tags": [],
|
||||
"content": "NNS is amazing: http://naddr1...ccpzu/image.jpg",
|
||||
|
|
Loading…
Reference in New Issue
Block a user