BNS Domains
The BelizeChain Name Service registers .bz domains on-chain through the BNS pallet, and maps each domain to DAG-hosted content served by Pakit. The hosting stack — HTTP serving, an authoritative DNS resolver and ACME certificate issuance — is implemented in Pakit's web_hosting package but is not started by the service entrypoint, so nothing resolves or serves .bz content on Ceiba yet.
BNS Features
WebsiteManager
Integrates the DAG backend with the BNS pallet for domain-to-content mapping. Supports activate_hosting and update_hosting_content extrinsics with bandwidth tracking and subscription verification.
HostingService
HTTP server built on aiohttp with Host-header domain routing. Serves DAG content directly, with caching, custom error pages, and per-domain bandwidth tracking.
BNS DNS Server
Authoritative DNS for .bz domains. BNSResolver answers A, AAAA, TXT, CNAME and MX queries with a 5-minute cache TTL, over UDP on 5353 for testing or 53 in production. It is not started by api_server.py, so no live .bz resolution is served today.
SSL Certificate Manager
Let's Encrypt ACME with HTTP-01 challenges, 90-day certificates renewed at 60 days, and multi-domain SAN support. The on-chain certificate-hash path only runs when a Substrate interface and keypair are injected — neither is wired up in the shipped entrypoint, so certificates stay local.
External Domain Verification
DNSVerifier proves ownership of an external domain through a _belizechain-verify TXT record holding a SHA-256 token with a 48-hour expiry.
Storage Proof Connector
Registers content proofs on BelizeChain so a hosted content hash maps to an on-chain record. Merkle is the proof type verified on-chain; Groth16 and other ZK types are rejected by pallet-storage-proof.