23 lines
No EOL
946 B
YAML
23 lines
No EOL
946 B
YAML
services:
|
|
dns-server:
|
|
container_name: dns-server
|
|
hostname: dns-server
|
|
image: technitium/dns-server:latest
|
|
# For DHCP deployments, use "host" network mode and remove all the port mappings, including the ports array by commenting them
|
|
# network_mode: "host"
|
|
ports:
|
|
- "53:53/udp" #DNS service
|
|
- "53:53/tcp" #DNS service
|
|
environment:
|
|
- DNS_SERVER_DOMAIN=dns.karmacoma.dev #The primary domain name used by this DNS Server to identify itself.
|
|
# - DNS_SERVER_FORWARDERS=1.1.1.1, 8.8.8.8 #Comma separated list of forwarder addresses.
|
|
# - DNS_SERVER_FORWARDER_PROTOCOL=Tcp #Forwarder protocol options: Udp, Tcp, Tls, Https, HttpsJson.
|
|
# - DNS_SERVER_LOG_USING_LOCAL_TIME=true #Enable this option to use local time instead of UTC for logging.
|
|
volumes:
|
|
- config:/etc/dns
|
|
restart: unless-stopped
|
|
sysctls:
|
|
- net.ipv4.ip_local_port_range=1024 65000
|
|
|
|
volumes:
|
|
config: |