NIP-0D (proposed): Relay Onion Discovery
NIP-0D is the identifier proposed in open pull request #2550. It has not been merged. The draft lets a relay advertise an onion address for clients that cannot reach the relay’s clearnet host from a Tor exit. A relay can send an Onion-Location header over TLS, or it can publish a _onion.<relay host> DNS TXT record. Clients should prefer the header. When they follow an advertisement, clients keep the original path, map http(s) to ws(s) and connect only to the onion target. Falling back to clearnet is permitted as a MAY.
For DNS discovery, the draft advises DNSSEC or a trusted resolver. It also warns that a TXT lookup made outside Tor reveals interest in the relay. NIP-42 AUTH may use either identity, and clients treat the advertised pair as a single relay. The author reports one working relay, but general rollout has not been shown. This is relay-side discovery. It is a separate topic from client-side Tor support.
Primary sources:
Mentioned in:
See also: