🇬🇧 English | 🇷🇺 Русский | 🇪🇸 Español | 🇩🇪 Deutsch | 🇫🇷 Français | 🇨🇳 中文 | 🇮🇳 हिंदी | 🇧🇷 Português | 🇹🇷 Türkçe | 🇮🇩 Bahasa Indonesia | 🇻🇳 Tiếng Việt | 🇰🇷 한국어
DNSBox is an open-source DNS server that allows you to issue free SSL certificates (Let's Encrypt) for any public IP address (IPv4 and IPv6) without owning a domain. Get HTTPS access to a server, API, or IoT device directly by IP.
- 🔐 Free SSL certificates from Let's Encrypt for IP addresses
- 🌐 Supports IPv4 and IPv6
- ⚡ Instant HTTPS access without DNS configuration
- 🔄 Automatic certificate renewal
- 💡 Works without a domain — use
*.dnsbox.io
subdomains - 🧩 Compatible with WebSocket, APIs, and CI/CD pipelines
- ⚙️ Lightweight installer via shell script
- 📦 Minimal dependencies, single binary, zero-config launch
bash <(curl -sSL https://raw.githubusercontent.com/crypto-chiefs/dnsbox/main/scripts/install.sh) --ip=167.172.5.205 --domain=dnsbox.io --ns=ns3
Parameters:
--ip
— your public IP address (required)--domain
— the root domain bound to the NS (e.g.,dnsbox.io
)--ns
— nameserver subdomain (e.g.,ns3
)--force-resolv
— disables systemd-resolved and sets 8.8.8.8--debug
— enables verbose output
- DNSBox launches a nameserver that serves A/AAAA and TXT records on the fly.
- You get a subdomain like
167.172.5.205.dnsbox.io
. - Let's Encrypt checks for a
_acme-challenge
TXT record and issues a certificate. - DNSBox automatically stores, renews, and serves the SSL certificate.
After installation, you can connect to your server over HTTPS:
curl https://167.172.5.205.dnsbox.io
Or test the SSL via OpenSSL:
openssl s_client -connect 167.172.5.205:443 -servername 167.172.5.205.dnsbox.io
- Language: Go
- DNS Library: miekg/dns
- TLS: standard
crypto/tls
- ACME Client: built-in ACME support (no certbot)
- On-the-fly logic: all DNS queries and challenges are handled in memory
- 🔧 DevOps infrastructure without domains
- 📡 IoT devices with public IPs
- 🧪 Lab/staging environments
- 🚀 Fast API deployment without DNS
- 🔐 VPN/Proxy services requiring HTTPS
All Let's Encrypt challenge requests are served only during valid IP validation. TLS private keys are stored in /var/lib/dnsbox/certs
.
Unlike existing services:
- DNSBox is a self-hosted open-source solution
- Deploy your own
*.yourdomain.tld
- Supports IPv6, ACME, and certificates without third-party APIs
This project is licensed under the MIT License. Use it freely, fork it, extend it.
- 🌍 Project website: https://dnsbox.io/
- 📦 Installer: install.sh
- 📖 Documentation: in progress
⭐ If you find this project useful, please star it on GitHub!