Modern web-based GUI for managing Azure DNS zones
5.2K
A custom web-based GUI for managing Azure DNS zones. This application provides a modern, user-friendly interface to view, add, edit, and delete DNS records using Azure Service Principal authentication.
Modern gradient header with glassmorphism effects, dynamic type filters, and responsive table layout.
Beautiful dark theme with optimized colors and smooth transitions.
The easiest way to run Azure DNS Manager is using Docker:
docker run -d -p 5000:5000 \
-e AZURE_TENANT_ID=your-tenant-id \
-e AZURE_CLIENT_ID=your-client-id \
-e AZURE_CLIENT_SECRET=your-client-secret \
-e AZURE_SUBSCRIPTION_ID=your-subscription-id \
-e AZURE_RESOURCE_GROUP=your-resource-group \
-e AZURE_DNS_ZONE=your-dns-zone.com \
--name azure-dns-manager \
yourusername/azure-dns-manager:latest
Then open http://localhost:5000 in your browser.
Microsoft.Network/dnszones/*# Pull the latest image
docker pull yourusername/azure-dns-manager:latest
# Run with environment variables
docker run -d \
--name azure-dns-manager \
-p 5000:5000 \
-e AZURE_TENANT_ID=your-tenant-id \
-e AZURE_CLIENT_ID=your-client-id \
-e AZURE_CLIENT_SECRET=your-client-secret \
-e AZURE_SUBSCRIPTION_ID=your-subscription-id \
-e AZURE_RESOURCE_GROUP=your-resource-group \
-e AZURE_DNS_ZONE=your-dns-zone.com \
yourusername/azure-dns-manager:latest
# Or use a .env file
docker run -d \
--name azure-dns-manager \
-p 5000:5000 \
--env-file .env \
yourusername/azure-dns-manager:latest
# Clone the repository
git clone https://github.com/yourusername/azure-dns-alternative-gui.git
cd azure-dns-alternative-gui
# Build the image
docker build -t azure-dns-manager .
# Run the container
docker run -d -p 5000:5000 --env-file .env azure-dns-manager
Create a docker-compose.yml:
version: '3.8'
services:
azure-dns-manager:
image: yourusername/azure-dns-manager:latest
container_name: azure-dns-manager
ports:
- "5000:5000"
environment:
- AZURE_TENANT_ID=${AZURE_TENANT_ID}
- AZURE_CLIENT_ID=${AZURE_CLIENT_ID}
- AZURE_CLIENT_SECRET=${AZURE_CLIENT_SECRET}
- AZURE_SUBSCRIPTION_ID=${AZURE_SUBSCRIPTION_ID}
- AZURE_RESOURCE_GROUP=${AZURE_RESOURCE_GROUP}
- AZURE_DNS_ZONE=${AZURE_DNS_ZONE}
restart: unless-stopped
healthcheck:
test: ["CMD", "python", "-c", "import requests; requests.get('http://localhost:5000/api/health')"]
interval: 30s
timeout: 10s
retries: 3
Then run:
docker-compose up -d
git clone https://github.com/yourusername/azure-dns-alternative-gui.git
cd azure-dns-alternative-gui
pip install -r requirements.txt
If you don't have a Service Principal yet, create one:
# Login to Azure
az login
# Create a Service Principal
az ad sp create-for-rbac --name "dns-manager-sp" --role "DNS Zone Contributor" --scopes /subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.Network/dnszones/{dns-zone-name}
This command will output:
{
"appId": "your-client-id",
"displayName": "dns-manager-sp",
"password": "your-client-secret",
"tenant": "your-tenant-id"
}
Copy the example environment file and fill in your Azure credentials:
cp .env.example .env
Edit .env with your values:
# Azure Service Principal Credentials
AZURE_TENANT_ID=your-tenant-id-here
AZURE_CLIENT_ID=your-client-id-here
AZURE_CLIENT_SECRET=your-client-secret-here
# Azure DNS Configuration
AZURE_SUBSCRIPTION_ID=your-subscription-id-here
AZURE_RESOURCE_GROUP=your-resource-group-here
AZURE_DNS_ZONE=your-dns-zone.com
Important: Never commit the .env file to version control!
python app.py
The application will start on http://localhost:5000
Open your web browser and navigate to:
http://localhost:5000
When you first access the application:
To update your Azure credentials later:
All configuration can be provided via environment variables (useful for Docker):
AZURE_TENANT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_CLIENT_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_CLIENT_SECRET=your-client-secret
AZURE_SUBSCRIPTION_ID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx
AZURE_RESOURCE_GROUP=your-resource-group
AZURE_DNS_ZONE=your-domain.com
The main page displays all DNS records in your configured zone in a table format showing:
Fill in the "Add New DNS Record" form:
www, mail) or @ for the root domain192.168.1.1)target.example.com)10 mail.example.com)v=spf1 include:_spf.google.com ~all)Click "Add Record"
Click the "š Refresh" button in the header to reload all records from Azure.
The backend provides the following REST API endpoints:
| Method | Endpoint | Description |
|---|---|---|
| GET | /api/health | Health check and zone info |
| GET | /api/config/status | Check if configuration is complete |
| GET | /api/config | Get current configuration |
| POST | /api/config | Save configuration |
| POST | /api/config/test | Test Azure credentials |
| GET | /api/records | List all DNS records |
| POST | /api/records | Create a new DNS record |
| PUT | /api/records/<type>/<name> | Update a DNS record |
| DELETE | /api/records/<type>/<name> | Delete a DNS record |
This project includes automated Docker image building and publishing via GitHub Actions.
Create Docker Hub Account if you don't have one
Generate Docker Hub Access Token:
Add GitHub Secrets: Go to your GitHub repository ā Settings ā Secrets and variables ā Actions
Add the following secrets:
DOCKERHUB_USERNAME: Your Docker Hub usernameDOCKERHUB_TOKEN: Your Docker Hub access tokenCreate and Push a Version Tag:
git tag v1.0.0
git push origin v1.0.0
Automated Build: The GitHub Actions workflow will:
latest# Create a new version tag
git tag -a v1.2.3 -m "Release version 1.2.3"
# Push the tag to trigger the CI/CD pipeline
git push origin v1.2.3
The pipeline will automatically:
v1.2.3 and latestThis app includes a built-in MCP server for AI agent integration (e.g., Claude Code). MCP allows AI assistants to manage DNS records programmatically.
Set the MCP_ENABLED environment variable:
docker run -d -p 5000:5000 \
-e MCP_ENABLED=true \
-e AZURE_TENANT_ID=your-tenant-id \
-e AZURE_CLIENT_ID=your-client-id \
-e AZURE_CLIENT_SECRET=your-client-secret \
-e AZURE_SUBSCRIPTION_ID=your-subscription-id \
-e AZURE_RESOURCE_GROUP=your-resource-group \
-e AZURE_DNS_ZONE=your-dns-zone.com \
azure-dns-manager
| Endpoint | Description |
|---|---|
GET /mcp/sse | SSE transport (requires Bearer token) |
POST /mcp/messages | JSON-RPC messages (requires Bearer token) |
GET /mcpdocs | Interactive MCP tool documentation |
| Tool | Description |
|---|---|
list_records | List all DNS records in the zone |
create_record | Create a new DNS record |
update_record | Update an existing DNS record |
delete_record | Delete a DNS record |
health_check | Check API health and zone info |
Add to your Claude Code MCP settings:
{
"mcpServers": {
"azure-dns": {
"type": "url",
"url": "https://your-azure-dns-host/mcp/sse",
"headers": {
"Authorization": "Bearer YOUR_API_TOKEN"
}
}
}
}
The MCP server uses the same API token as the REST API.
azure-dns-alternative-gui/
āāā .github/
ā āāā workflows/
ā āāā docker-publish.yml # CI/CD pipeline for Docker
āāā static/
ā āāā index.html # Main DNS records page
ā āāā settings.html # Configuration page
ā āāā app.js # Main page JavaScript
ā āāā settings.js # Settings page JavaScript
ā āāā styles.css # Modern CSS with dark mode
āāā app.py # Flask backend application
āāā requirements.txt # Python dependencies
āāā Dockerfile # Docker image definition
āāā .dockerignore # Docker build exclusions
āāā .env.example # Example environment variables
āāā .env # Your configuration (not in git)
āāā .gitignore # Git ignore rules
āāā README.md # This file
.env to git)0.0.0.0) - consider restricting this in productionContainer won't start
# Check container logs
docker logs azure-dns-manager
# Check if port is already in use
netstat -an | grep 5000 # Linux/Mac
netstat -ano | findstr :5000 # Windows
Configuration not persisting
docker run -d -p 5000:5000 -v $(pwd)/.env:/app/.env azure-dns-manager
"Module not found" errors
pip install -r requirements.txt
"Missing required environment variables" error
Make sure you've created a .env file with all required values or configured via the Settings page.
http://127.0.0.1:5000 insteadContributions are welcome! Please feel free to submit a Pull Request.
This project is open source and available under the MIT License.
Note: This is a development tool. For production use, implement proper security measures including user authentication, HTTPS, and access controls.
docker pull awkto/azure-dns-manager:latest