bdns

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 27, 2026 License: Apache-2.0

README

bdns

DNS whose zones are published by their owners and whose servers compete. A zone is a chain of signed records carried by a BSV overlay. Every operator that takes the zone receives each change once, renders it for an ordinary DNS server, and answers on port 53.

Experimental and private. Nothing here is frozen.

What is built

Piece What Where
record codec the records, their leaves, the root and its proofs, admission zonerec/, docs/spec.md
overlay module admits a zone's records on a host and answers lookups (tm_bdns_<z>, ls_bdns) module/
bdns a publisher's command: create a zone, change its records, read them back verified cmd/bdns/, docs/command.md
bdns render the renderer: follows zones on an overlay host, verifies each state, and writes Knot DNS zone files with a catalog zone, and dnsmasq hosts files internal/render/, docs/render.md

A follower of another kind reads the stream bdns follow prints: docs/follow.md.

Build

make build    # bin/bdns
make verify   # format, vet, tidy, third-party licenses, tests

Report a vulnerability privately: SECURITY.md. Contributing: CONTRIBUTING.md.

Directories

Path Synopsis
cmd
bdns command
Command bdns is a zone publisher's tool: it mints a zone's chains, changes their records, and reads them back from an overlay host, verified here.
Command bdns is a zone publisher's tool: it mints a zone's chains, changes their records, and reads them back from an overlay host, verified here.
internal
chainread
Package chainread reads a bdns chain from an overlay host and believes nothing the host says: every token is decoded and held to the chain's rules from seq 0, and every leaves object to the state that commits to it.
Package chainread reads a bdns chain from an overlay host and believes nothing the host says: every token is decoded and held to the chain's rules from seq 0, and every leaves object to the state that commits to it.
indverify
Package indverify is a second implementation of what a verifier of bdns proofs does, written from the specification (docs/spec.md sections 4 and 13) and RFC 9162 alone.
Package indverify is a second implementation of what a verifier of bdns proofs does, written from the specification (docs/spec.md sections 4 and 13) and RFC 9162 alone.
present
Package present turns DNS presentation form (RFC 1035 master file syntax) into bdns leaves and back.
Package present turns DNS presentation form (RFC 1035 master file syntax) into bdns leaves and back.
render
Package render is the bdns renderer: a daemon beside an overlay host that follows the zones its operator names, verifies every state itself, and writes configuration for an ordinary DNS server (docs/render.md).
Package render is the bdns renderer: a daemon beside an overlay host that follows the zones its operator names, verifies every state itself, and writes configuration for an ordinary DNS server (docs/render.md).
zonetest
Package zonetest builds bdns's transactions for tests: real keys, real signatures, each mined transaction in a block of its own against a stub header source.
Package zonetest builds bdns's transactions for tests: real keys, real signatures, each mined transaction in a block of its own against a stub header source.
Package module is bdns's overlay module, against bcommon's engine-neutral contract: tm_bdns_<z> for each chain BDNS_ZONES names, and ls_bdns for all of them.
Package module is bdns's overlay module, against bcommon's engine-neutral contract: tm_bdns_<z> for each chain BDNS_ZONES names, and ls_bdns for all of them.
Package zonerec is bdns's record codec: the four records a zone's topic carries, the leaves a state commits to, their root and their proofs (docs/spec.md).
Package zonerec is bdns's record codec: the four records a zone's topic carries, the leaves a state commits to, their root and their proofs (docs/spec.md).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL