HUB
Sign inSign up

awkto/dnsinabox

By awkto

•Updated 10 months ago

DNS server with web GUI - manage zones, records, and forwarders

Image
0

2.4K

awkto/dnsinabox repository overview

⁠DNS in a Box

A simple web GUI for managing DNS servers.

⁠Features

  • Manage DNS zones and records (A, AAAA, CNAME, MX, TXT, NS, PTR, SRV)
  • Configure forwarders (global and conditional)
  • Bundled BIND9 or connect to external DNS servers
  • Dark/light theme

⁠Quick Start

docker run -d \
  -p 53:53/udp -p 53:53/tcp \
  -p 8080:80 \
  -v dnsinabox-data:/data \
  dnsinabox

Access the UI at http://localhost:8080

Default login: admin / admin

⁠Architecture

Single container with:

  • nginx - serves React frontend
  • FastAPI - REST API backend
  • SQLite - configuration database
  • BIND9 - DNS server (bundled mode)
┌─────────────────────────────────┐
│  dnsinabox container            │
│  ┌───────────┐ ┌─────────────┐  │
│  │  nginx    │ │  BIND9      │  │
│  │ (React UI)│ │  (DNS)      │  │
│  └─────┬─────┘ └──────▲──────┘  │
│        │              │         │
│  ┌─────▼──────────────┴──────┐  │
│  │  FastAPI + SQLite         │  │
│  └───────────────────────────┘  │
└─────────────────────────────────┘

⁠Volumes

PathPurpose
/dataSQLite database, zone files, config

⁠Environment Variables

VariableDefaultDescription
ADMIN_USERNAMEadminAdmin username
ADMIN_PASSWORDadminAdmin password
SECRET_KEY(random)JWT signing key

⁠Build from Source

# Clone the repository
git clone https://github.com/youruser/dnsinabox.git
cd dnsinabox

# Build the container
docker build -t dnsinabox .

# Run it
docker run -d \
  -p 53:53/udp -p 53:53/tcp \
  -p 8080:80 \
  -v dnsinabox-data:/data \
  dnsinabox

Or use docker-compose:

docker-compose up --build

⁠Development

For development with hot reload, use the dev compose file:

docker-compose -f docker-compose.dev.yml up --build

This starts separate containers for backend, frontend, database, and BIND with hot reload enabled.

⁠Roadmap

See TASKS.md⁠ for current progress and planned features.

⁠License

MIT

Tag summary
Recent tags
Content type
Image
Digest
sha256:d8be2e016…
Size
234.4 MB
Last updated
10 months ago
docker pull awkto/dnsinabox:latest