A small daemon speaking DoH (and/or UDP 53) that treats <npub>.nostr as a zone:
- On query, extract the pubkey from the name, fetch the kind 31034 event from relays
- Verify the event signature
- Answer with the records and a TTL derived from
created_at
- Cache responses
A browser or OS pointed at this resolver would then transparently resolve .nostr names. This is the piece that gives interop with ordinary software, the same way pkarr's DNS servers bridge the Mainline DHT.
Likely ~150 lines with dns2 or raw dgram. Depends on the record format defined in #2.
A small daemon speaking DoH (and/or UDP 53) that treats
<npub>.nostras a zone:created_atA browser or OS pointed at this resolver would then transparently resolve
.nostrnames. This is the piece that gives interop with ordinary software, the same way pkarr's DNS servers bridge the Mainline DHT.Likely ~150 lines with
dns2or rawdgram. Depends on the record format defined in #2.