change to host mode for dhcp
This commit is contained in:
+11
-10
@@ -5,12 +5,12 @@ services:
|
|||||||
# env_file: technitium.env
|
# env_file: technitium.env
|
||||||
image: docker.io/technitium/dns-server:latest
|
image: docker.io/technitium/dns-server:latest
|
||||||
# For DHCP deployments, use "host" network mode and remove all the port mappings, including the ports array by commenting them
|
# For DHCP deployments, use "host" network mode and remove all the port mappings, including the ports array by commenting them
|
||||||
# network_mode: "host"
|
network_mode: "host"
|
||||||
ports:
|
# ports:
|
||||||
- "5380:5380" #DNS web console (HTTP)
|
# - "5380:5380" #DNS web console (HTTP)
|
||||||
- "53443:53443/tcp" #DNS web console (HTTPS)
|
# - "53443:53443/tcp" #DNS web console (HTTPS)
|
||||||
- "53:53/udp" #DNS service
|
# - "53:53/udp" #DNS service
|
||||||
- "53:53/tcp" #DNS service
|
# - "53:53/tcp" #DNS service
|
||||||
# - "853:853/udp" #DNS-over-QUIC service
|
# - "853:853/udp" #DNS-over-QUIC service
|
||||||
# - "853:853/tcp" #DNS-over-TLS service
|
# - "853:853/tcp" #DNS-over-TLS service
|
||||||
# - "443:443/udp" #DNS-over-HTTPS service (HTTP/3)
|
# - "443:443/udp" #DNS-over-HTTPS service (HTTP/3)
|
||||||
@@ -20,7 +20,7 @@ services:
|
|||||||
# - "67:67/udp" #DHCP service
|
# - "67:67/udp" #DHCP service
|
||||||
environment:
|
environment:
|
||||||
- DNS_SERVER_DOMAIN=dns-server
|
- DNS_SERVER_DOMAIN=dns-server
|
||||||
# - DNS_SERVER_ADMIN_PASSWORD=tsmaster #DNS web console admin user password.
|
# - DNS_SERVER_ADMIN_PASSWORD=topsecret #DNS web console admin user password.
|
||||||
# - DNS_SERVER_ADMIN_PASSWORD_FILE=password.txt #The path to a file that contains a plain text password for the DNS web console admin user.
|
# - DNS_SERVER_ADMIN_PASSWORD_FILE=password.txt #The path to a file that contains a plain text password for the DNS web console admin user.
|
||||||
# - DNS_SERVER_PREFER_IPV6=false #DNS Server will use IPv6 for querying whenever possible with this option enabled.
|
# - DNS_SERVER_PREFER_IPV6=false #DNS Server will use IPv6 for querying whenever possible with this option enabled.
|
||||||
# - DNS_SERVER_WEB_SERVICE_LOCAL_ADDRESSES=172.17.0.1,127.0.0.1 #Comma separated list of network interface IP addresses that you want the web service to listen on for requests.
|
# - DNS_SERVER_WEB_SERVICE_LOCAL_ADDRESSES=172.17.0.1,127.0.0.1 #Comma separated list of network interface IP addresses that you want the web service to listen on for requests.
|
||||||
@@ -35,7 +35,8 @@ services:
|
|||||||
# - DNS_SERVER_OPTIONAL_PROTOCOL_DNS_OVER_HTTP=false #Enables DNS server optional protocol DNS-over-HTTP on TCP port 8053 to be used with a TLS terminating reverse proxy like nginx.
|
# - DNS_SERVER_OPTIONAL_PROTOCOL_DNS_OVER_HTTP=false #Enables DNS server optional protocol DNS-over-HTTP on TCP port 8053 to be used with a TLS terminating reverse proxy like nginx.
|
||||||
# - DNS_SERVER_RECURSION=AllowOnlyForPrivateNetworks #Recursion options: Allow, Deny, AllowOnlyForPrivateNetworks, UseSpecifiedNetworkACL.
|
# - DNS_SERVER_RECURSION=AllowOnlyForPrivateNetworks #Recursion options: Allow, Deny, AllowOnlyForPrivateNetworks, UseSpecifiedNetworkACL.
|
||||||
# - DNS_SERVER_RECURSION_NETWORK_ACL=192.168.10.0/24, !192.168.10.2 #Comma separated list of IP addresses or network addresses to allow access.
|
# - DNS_SERVER_RECURSION_NETWORK_ACL=192.168.10.0/24, !192.168.10.2 #Comma separated list of IP addresses or network addresses to allow access.
|
||||||
# Add ! character at the start to deny access, e.g. !192.168.10.0/24 will deny entire subnet. The ACL is processed in the same order its listed. If no networks match, the default policy is to deny all except loopback.
|
# Add ! character at the start to deny access, e.g. !192.168.10.0/24 will deny entire subnet. The ACL is processed in the same order its listed.
|
||||||
|
# If no networks match, the default policy is to deny all except loopback.
|
||||||
# Valid only for `UseSpecifiedNetworkACL` recursion option.
|
# Valid only for `UseSpecifiedNetworkACL` recursion option.
|
||||||
# - DNS_SERVER_RECURSION_DENIED_NETWORKS=1.1.1.0/24 #Comma separated list of IP addresses or network addresses to deny recursion. Valid only for `UseSpecifiedNetworkACL` recursion option.
|
# - DNS_SERVER_RECURSION_DENIED_NETWORKS=1.1.1.0/24 #Comma separated list of IP addresses or network addresses to deny recursion. Valid only for `UseSpecifiedNetworkACL` recursion option.
|
||||||
# This option is obsolete and DNS_SERVER_RECURSION_NETWORK_ACL should be used instead.
|
# This option is obsolete and DNS_SERVER_RECURSION_NETWORK_ACL should be used instead.
|
||||||
@@ -55,8 +56,8 @@ services:
|
|||||||
- config:/etc/dns
|
- config:/etc/dns
|
||||||
- logs:/var/log/technitium/dns
|
- logs:/var/log/technitium/dns
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
sysctls:
|
# sysctls:
|
||||||
- net.ipv4.ip_local_port_range=1024 65535 #remove when using "host" network mode
|
# - net.ipv4.ip_local_port_range=1024 65535 #remove when using "host" network mode
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
config:
|
config:
|
||||||
|
|||||||
Reference in New Issue
Block a user