Skip to content

Commit 16438e9

Browse files
committed
BOLT 7: add gossip address descriptor type DNS hostname
This introduces a new gossip address descriptor type used for DNS hostnames. This is particular useful for dynamic DNS users that want to use their home ISP connection with changing IP addresses without relying only on TOR. The `len` field is deliberately encoded with just a byte (u8) since POSIX hostnames do not exceed 255 bytes in total.
1 parent 498f104 commit 16438e9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

07-routing-gossip.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,7 @@ The following `address descriptor` types are defined:
285285
onion service addresses; Encodes:
286286
`[32:32_byte_ed25519_pubkey] || [2:checksum] || [1:version]`, where
287287
`checksum = sha3(".onion checksum" | pubkey || version)[:2]`.
288+
* `5`: DNS hostname; data = `[1:hostname_len][hostname_len:hostname][2:port]` (length up to 258)
288289

289290
### Requirements
290291

0 commit comments

Comments
 (0)