Skip to content

Open source Bitcoin-powered DNS resolution service with blockchain domain registration, decentralized naming, and smart contract integration | By THE BITCOIN CORPORATION LTD

License

Notifications You must be signed in to change notification settings

bitcoin-apps-suite/bitcoin_dns

Repository files navigation

Bitcoin DNS 🌐

Decentralized Domain Name System on Bitcoin SV Blockchain

Bitcoin DNS enables companies to create blockchain-governed versions of their websites through b.subdomain.com addresses with tokenized ownership, shareholder voting, and X402 micropayment revenue distribution.

Next.js TypeScript Bitcoin SV License

πŸš€ Quick Start

# Clone the repository
git clone https://github.com/bitcoin-corp/bitcoin_dns.git
cd bitcoin_dns

# Install dependencies
npm install

# Run development server
npm run dev

# Build for production
npm run build

Visit http://localhost:3000 to access the Bitcoin DNS portal.

🎯 What is Bitcoin DNS?

Bitcoin DNS revolutionizes domain ownership by creating blockchain-governed alternatives to traditional websites:

  • b.company.com - Blockchain version of company.com
  • Tokenized Ownership - Domain shares as NFTs with democratic control
  • Threshold Governance - 51% shareholder approval for major decisions
  • X402 Revenue - Automatic micropayment distribution to shareholders
  • BSV Integration - Immutable records and smart contract execution

πŸ—οΈ Architecture Overview

β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”
β”‚                    Bitcoin DNS Ecosystem                    β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚  Portal (Next.js)     β”‚  Smart Contracts  β”‚  DNS Resolver   β”‚
β”‚  - Company Setup     β”‚  - Governance     β”‚  - b.* Routing  β”‚
β”‚  - Share Management  β”‚  - Voting         β”‚  - Cache Layer  β”‚
β”‚  - Analytics         β”‚  - Revenue Split  β”‚  - Fallback     β”‚
β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€
β”‚              Bitcoin SV Blockchain Layer                   β”‚
β”‚  - NFT Containers    β”‚  X402 Payments    β”‚  Domain Records β”‚
β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜

πŸ”§ Core Features

1. Portal Interface (/portal)

  • 4-step company subdomain setup wizard
  • Share structure configuration (total shares, voting thresholds)
  • Revenue distribution settings (shareholders/development/operations)
  • Real-time deployment cost estimation

2. Smart Contract Governance

  • Proposal system for content updates and configuration changes
  • Threshold signature voting (default 51% approval required)
  • Automated execution of approved proposals
  • NFT container integration for tokenized shares

3. X402 Revenue Distribution

  • Micropayment tracking from DNS queries and subdomain visits
  • Automatic revenue distribution based on shareholder percentages
  • Analytics dashboard with revenue sources and trends
  • Gas-optimized batch payments

4. DNS Resolution Service

  • b.subdomain.com routing with blockchain integration
  • 5-minute cache layer for performance optimization
  • Fallback to traditional DNS when subdomain not configured
  • Governance-based DNS record updates

πŸ“ Project Structure

bitcoin_dns/
β”œβ”€β”€ src/
β”‚   β”œβ”€β”€ app/                     # Next.js App Router pages
β”‚   β”‚   β”œβ”€β”€ portal/             # Company setup portal
β”‚   β”‚   β”œβ”€β”€ token/              # $BDNS token economics
β”‚   β”‚   β”œβ”€β”€ contracts/          # Development contracts
β”‚   β”‚   β”œβ”€β”€ docs/               # Documentation
β”‚   β”‚   β”œβ”€β”€ tasks/              # Community tasks
β”‚   β”‚   └── contributions/      # Contribution tracking
β”‚   β”œβ”€β”€ components/             # React components
β”‚   β”‚   β”œβ”€β”€ DevLayout.tsx       # Developer sidebar layout
β”‚   β”‚   β”œβ”€β”€ DevSidebar.tsx      # GitHub integration sidebar
β”‚   β”‚   β”œβ”€β”€ PocBar.tsx          # Proof of concept banner
β”‚   β”‚   └── Taskbar.tsx         # Navigation taskbar
β”‚   β”œβ”€β”€ lib/
β”‚   β”‚   β”œβ”€β”€ contracts/          # Smart contract interfaces
β”‚   β”‚   β”‚   └── DomainGovernance.ts
β”‚   β”‚   β”œβ”€β”€ payments/           # X402 revenue system
β”‚   β”‚   β”‚   └── X402Revenue.ts
β”‚   β”‚   β”œβ”€β”€ dns/                # DNS resolution service
β”‚   β”‚   β”‚   └── SubdomainResolver.ts
β”‚   β”‚   └── utils/              # Utility functions
β”‚   └── styles/                 # Tailwind CSS styles
β”œβ”€β”€ docs/                       # Additional documentation
β”œβ”€β”€ contracts/                  # Development contracts
└── issues/                     # GitHub issues templates

🌟 Use Cases

For Companies:

  1. Brand Protection - Secure blockchain version of company domain
  2. Community Engagement - Shareholders participate in content decisions
  3. Revenue Sharing - Distribute profits to stakeholders automatically
  4. Governance Innovation - Democratic control over digital assets

For Investors:

  1. Domain Ownership - Buy shares in valuable internet properties
  2. Revenue Participation - Earn from domain traffic and services
  3. Voting Rights - Influence content and strategic decisions
  4. Liquid Assets - Trade domain shares on BSV marketplace

For Developers:

  1. Integration Opportunities - Build on Bitcoin DNS infrastructure
  2. Token Rewards - Earn $BDNS for contributions
  3. Smart Contract Development - Create domain governance solutions
  4. DNS Innovation - Pioneer blockchain-based internet protocols

πŸ’° Token Economics ($BDNS)

  • Total Supply: 1,000,000,000 $BDNS
  • Development Allocation: 100,000,000 $BDNS (10%)
  • Company Reserves: 300,000,000 $BDNS (30%)
  • Community Rewards: 400,000,000 $BDNS (40%)
  • Ecosystem Growth: 200,000,000 $BDNS (20%)

Revenue Streams:

  • Domain registration fees
  • DNS service charges
  • Governance transaction fees
  • Share trading commissions
  • Premium features and analytics

πŸ› οΈ Development

Prerequisites

  • Node.js 18+ and npm
  • Bitcoin SV wallet for testing
  • Git for version control

Local Development

# Install dependencies
npm install

# Start development server
npm run dev

# Run linting
npm run lint

# Type checking
npm run type-check

# Build for production
npm run build

Environment Variables

Create a .env.local file:

BSV_RPC_ENDPOINT=https://api.whatsonchain.com/v1/bsv/main
NEXT_PUBLIC_APP_URL=http://localhost:3000
NEXT_PUBLIC_GITHUB_REPO=bitcoin-corp/bitcoin_dns

🀝 Contributing

We welcome contributions! See our Development Contracts for token-incentivized tasks.

Quick Contributing Steps:

  1. Check GitHub Issues for available tasks
  2. Review corresponding Development Contract for $BDNS rewards
  3. Fork the repository and create a feature branch
  4. Implement changes with tests and documentation
  5. Submit a Pull Request referencing the issue

Contribution Rewards:

  • Critical Features: 1,000,000 - 5,000,000 $BDNS
  • Major Enhancements: 500,000 - 1,000,000 $BDNS
  • Bug Fixes: 50,000 - 200,000 $BDNS
  • Documentation: 25,000 - 100,000 $BDNS

πŸ“‹ Roadmap

Phase 1: Foundation (Q1 2025)

  • βœ… Core portal interface
  • βœ… Smart contract governance framework
  • βœ… X402 revenue distribution system
  • βœ… Basic DNS resolver service
  • πŸ”„ BSV blockchain integration
  • πŸ”„ NFT container implementation

Phase 2: Production (Q2 2025)

  • πŸ“‹ Mainnet smart contract deployment
  • πŸ“‹ DNS infrastructure scaling
  • πŸ“‹ Security audits and testing
  • πŸ“‹ Company onboarding program
  • πŸ“‹ Mobile-responsive interface

Phase 3: Ecosystem (Q3 2025)

  • πŸ“‹ Secondary marketplace for domain shares
  • πŸ“‹ Advanced analytics dashboard
  • πŸ“‹ API for third-party integrations
  • πŸ“‹ Multi-chain support exploration
  • πŸ“‹ Enterprise features and SLA

Phase 4: Scale (Q4 2025)

  • πŸ“‹ Global DNS infrastructure
  • πŸ“‹ Institutional partnerships
  • πŸ“‹ Advanced governance features
  • πŸ“‹ Cross-domain interoperability
  • πŸ“‹ Decentralized autonomous operation

πŸ”— Links

βš–οΈ License

This project is licensed under the MIT License - see the LICENSE file for details.

🚨 Disclaimer

Bitcoin DNS is experimental technology. Use at your own risk. This is not financial advice. Cryptocurrency investments are volatile and risky.


Built with ❀️ on Bitcoin SV blockchain

Democratizing domain ownership, one subdomain at a time.

About

Open source Bitcoin-powered DNS resolution service with blockchain domain registration, decentralized naming, and smart contract integration | By THE BITCOIN CORPORATION LTD

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •