feat: BIND DNS Web Manager - Web interface for managing BIND9 DNS server

- Flask + SQLite web app with user authentication
- Zone management: create/delete zones, edit raw zone files
- Record management: add/delete A/AAAA/CNAME/MX/TXT/NS/PTR/SRV/CAA records
- Service control: start/stop/restart/reload BIND via systemctl/rndc
- Configuration editor: edit named.conf.options/local with syntax validation
- DNS query testing: online dig tool
- Audit log: all operations logged with user/timestamp
- BIND9 backend, listening on port 53
This commit is contained in:
AI Agent
2026-07-09 17:24:44 +08:00
commit 0a18b94d84
19 changed files with 2587 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
#!/usr/bin/env python3
"""Initialize the DNS Web Manager database."""
import os
import sys
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
from app import app, db, seed_admin
with app.app_context():
db.create_all()
seed_admin()
print("Database initialized successfully")