Skip to content

Build dnstr-server: a DNS/DoH bridge that serves .nostr names from relays #3

Description

@melvincarvalho

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions