A DNS/DHCP server for Proxmox with automatic generation of DNS records.
1.3K
A DNS/DHCP server based on dnsmasq and hacks with automatic generation of DNS records for dynamic and static IPs using ARP scanning and the Proxmox API.
Detailed installation instructions are in the repository dexogen/pve-leazzard.
docker-compose.yml services:
pve-leazzard:
image: dexogen/pve-leazzard:latest
environment:
PROXMOX_HOST: "https://your-proxmox.host:port" # can omit the port if 443
API_TOKEN_ID: "root@pam!leazzard"
API_TOKEN_SECRET: "00000000-0000-0000-0000-000000000000"
VERIFY_SSL: "true" # only if you have a valid certificate
NETWORK_CIDR: "10.0.0.0/23" # your main prefix
DHCP_RANGE: "10.0.1.1,10.0.1.254,255.255.254.0,12h" # DHCP issuance range
DHCP_OPTION: "option:router,10.0.0.1" # router address
DNS_DOMAIN: "lab" # your custom domain
SYNC_INTERVAL: "300" # sync interval with PVE when there are no ARP events
ARP_CHECK_INTERVAL: "15" # ARP scanning interval
LOG_LEVEL: "ERROR" # logging level ERROR/INFO
network_mode: "host" # without this, the ARP scanner will not work
cap_add:
- NET_ADMIN
restart: always
# optional, for debugging convenience
volumes:
- ./dnsmasq:/etc/dnsmasq.d
- ./leases:/var/lib/misc
| Variable | Required | Example |
|---|---|---|
PROXMOX_HOST | true | https://your-proxmox.host:port |
API_TOKEN_ID | true | root@pam!leazzard |
API_TOKEN_SECRET | true | 00000000-0000-0000-0000-000000000000 |
DNS_DOMAIN | true | lab |
NETWORK_CIDR | true | 10.0.0/23 |
DHCP_RANGE | true | 10.0.1.1,10.0.1.254,255.255.254.0,12h |
DHCP_OPTION | true | option:router,10.0.0.1 |
VERIFY_SSL | true (default) / false | |
SYNC_INTERVAL | 300 (default) | |
ARP_SCAN_INTERVAL | 30 (default) | |
LOG_LEVEL | ERROR (default) / INFO |
Content type
Image
Digest
sha256:303be382d…
Size
43.7 MB
Last updated
almost 2 years ago
docker pull dexogen/pve-leazzard