Adds TTL do A records.

This commit is contained in:
Vitor Pamplona 2024-06-26 16:19:54 -04:00
parent d3cf4399c9
commit 91fc187468

9
97.md
View File

@ -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",