Sleek web GUI for managing BIND DNS zones and records
1.9K
A sleek, modern web interface for managing BIND DNS zones and records. This application combines the power of BIND9 DNS server with an intuitive Python Flask web interface, all packaged together in a convenient Docker container.
rndcdocker run -d \
--name dns-gui-for-bind \
-p 53:53/tcp \
-p 53:53/udp \
-p 5000:5000 \
awkto/dns-gui-for-bind:latest
Then open your browser to http://localhost:5000
git clone https://github.com/awkto/dns-gui-for-bind.git
cd dns-gui-for-bind
docker-compose up -d
Access the web interface at http://localhost:5000
| Variable | Default | Description |
|---|---|---|
BIND_ZONES_DIR | /etc/bind/zones | Directory for zone files |
BIND_CONFIG_FILE | /etc/bind/named.conf.local | BIND local configuration file |
USE_RNDC | true | Use rndc for reloading BIND |
PORT | 5000 | Web interface port |
To persist your DNS zones and configurations, use Docker volumes:
docker run -d \
--name dns-gui-for-bind \
-p 53:53/tcp \
-p 53:53/udp \
-p 5000:5000 \
-v dns-zones:/etc/bind/zones \
-v dns-config:/etc/bind \
awkto/dns-gui-for-bind:latest
example.com)The zone will be created with default NS and SOA records.
www, mail, or @ for root)GET /api/zones
POST /api/zones
Content-Type: application/json
{
"zone_name": "example.com",
"admin_email": "[email protected]",
"ttl": 86400
}
DELETE /api/zones/{zone_name}
GET /api/zones/{zone_name}/records
POST /api/zones/{zone_name}/records
Content-Type: application/json
{
"name": "www",
"type": "A",
"value": "192.168.1.1",
"ttl": 3600
}
PUT /api/zones/{zone_name}/records/{record_id}
Content-Type: application/json
{
"name": "www",
"type": "A",
"value": "192.168.1.2",
"ttl": 3600
}
DELETE /api/zones/{zone_name}/records/{record_id}
GET /api/health
If you prefer to run the application without Docker:
# Ubuntu/Debian
sudo apt-get install bind9 bind9utils
# CentOS/RHEL
sudo yum install bind bind-utils
pip install -r requirements.txt
export BIND_ZONES_DIR=/etc/bind/zones
export BIND_CONFIG_FILE=/etc/bind/named.conf.local
export USE_RNDC=true
export PORT=5000
python3 app.py
dns-gui-for-bind/
โโโ app.py # Flask application and API routes
โโโ bind_manager.py # BIND management logic
โโโ requirements.txt # Python dependencies
โโโ static/
โ โโโ index.html # Frontend UI
โ โโโ app.js # Frontend JavaScript
โโโ bind-config/
โ โโโ named.conf # Main BIND configuration
โ โโโ named.conf.local # Local zones configuration
โ โโโ named.conf.default-zones # Default zones
โโโ Dockerfile # Container build instructions
โโโ docker-compose.yml # Docker Compose configuration
โโโ start.sh # Container startup script
โโโ .github/
โโโ workflows/
โโโ docker-build.yml # CI/CD pipeline
git clone https://github.com/awkto/dns-gui-for-bind.git
cd dns-gui-for-bind
docker build -t dns-gui-for-bind .
docker run -d -p 53:53/tcp -p 53:53/udp -p 5000:5000 dns-gui-for-bind
Contributions are welcome! Please feel free to submit a Pull Request.
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)This project is licensed under the MIT License - see the LICENSEโ file for details.
named-checkconf /etc/bind/named.confdocker logs dns-gui-for-bindrndc statusUSE_RNDC is set to trueMade with โค๏ธ for the DNS community
docker pull awkto/dns-gui-for-bind:latest