# vim: set syntax=yaml: variant: fcos version: 1.7.0 storage: directories: - path: /var/home/core/technitium user: name: core group: name: core mode: 0755 - path: /var/home/core/technitium/config user: name: core group: name: core mode: 0755 - path: /var/home/core/technitium/logs user: name: core group: name: core mode: 0755 - path: /var/home/core/.config user: name: core group: name: core mode: 0755 - path: /var/home/core/.config/systemd user: name: core group: name: core mode: 0755 - path: /var/home/core/.config/systemd/user user: name: core group: name: core mode: 0755 - path: /var/home/core/.config/systemd/user/default.target.wants user: name: core group: name: core mode: 0755 files: # Use the following to add a SSL CA to the system, if needed. - path: /etc/pki/ca-trust/source/anchors/ZscalerRootCertificate-2048-SHA256.crt mode: 0644 contents: source: https://script.cne.mcnc.org/coreos/Zscaler.crt - path: /etc/sysctl.d/99-rootless-ports.conf mode: 0644 contents: inline: | # Allow rootless users to bind to ports 53 and above net.ipv4.ip_unprivileged_port_start=53 - path: /etc/systemd/resolved.conf.d/disable-stub.conf mode: 0644 contents: inline: | [Resolve] DNSStubListener=no - path: /var/lib/systemd/linger/core mode: 0644 - path: /etc/systemd/system/user@1000.service.d/wait-for-network.conf mode: 0644 contents: inline: | [Unit] After=network-online.target Wants=network-online.target - path: /etc/containers/systemd/users/1000/technitium.container mode: 0644 contents: inline: | [Unit] Description=Technitium DNS Server [Container] Image=docker.io/technitium/dns-server:latest ContainerName=technitium Volume=/var/home/core/technitium/config:/etc/dns:Z Volume=/var/home/core/technitium/logs:/var/log/technitium/dns:Z # DNS web console (HTTP) PublishPort=5380:5380/tcp # DNS web console (HTTPS) PublishPort=53443:53443/tcp # DNS service PublishPort=53:53/udp # DNS service PublishPort=53:53/tcp # DNS-over-QUIC service #PublishPort=853:853/udp # DNS-over-TLS service #PublishPort=853:853/tcp # DNS-over-HTTPS service (HTTP/3) #PublishPort=443:443/udp # DNS-over-HTTPS service (HTTP/1.1, HTTP/2) #PublishPort=443:443/tcp # DNS-over-HTTP service (use with reverse proxy or certbot certificate renewal) #PublishPort=80:80/tcp # DNS-over-HTTP service (use with reverse proxy) #PublishPort=8053:8053/tcp # DHCP service #PublishPort=67:67/udp Environment=DNS_SERVER_DOMAIN=dns-server #The primary domain name used by this DNS Server to identify itself. #Environment=DNS_SERVER_ADMIN_PASSWORD=password #DNS web console admin user password. #Environment=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. #Environment=DNS_SERVER_PREFER_IPV6=false #DNS Server will use IPv6 for querying whenever possible with this option enabled. #Environment=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. The "172.17.0.1" address is the built-in Docker bridge. The "[::]" is the default value if not specified. Note! This must be used only with "host" network mode. Environment=DNS_SERVER_WEB_SERVICE_HTTP_PORT=5380 #The TCP port number for the DNS web console over HTTP protocol. Environment=DNS_SERVER_WEB_SERVICE_HTTPS_PORT=53443 #The TCP port number for the DNS web console over HTTPS protocol. Environment=DNS_SERVER_WEB_SERVICE_ENABLE_HTTPS=true #Enables HTTPS for the DNS web console. Environment=DNS_SERVER_WEB_SERVICE_USE_SELF_SIGNED_CERT=true #Enables self signed TLS certificate for the DNS web console. #Environment=DNS_SERVER_WEB_SERVICE_TLS_CERTIFICATE_PATH=/etc/dns/tls/cert.pfx #The file path to the TLS certificate for the DNS web console. #Environment=DNS_SERVER_WEB_SERVICE_TLS_CERTIFICATE_PASSWORD=password #The password for the TLS certificate for the DNS web console. #Environment=DNS_SERVER_WEB_SERVICE_HTTP_TO_TLS_REDIRECT=false #Enables HTTP to HTTPS redirection for the DNS web console. #Environment=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. Environment=DNS_SERVER_RECURSION=AllowOnlyForPrivateNetworks #Recursion options: Allow, Deny, AllowOnlyForPrivateNetworks, UseSpecifiedNetworkACL. #Environment=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. Valid only for `UseSpecifiedNetworkACL` recursion option. #Environment=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. #Environment=DNS_SERVER_RECURSION_ALLOWED_NETWORKS=127.0.0.1, 192.168.1.0/24 #Comma separated list of IP addresses or network addresses to allow recursion. Valid only for `UseSpecifiedNetworkACL` recursion option. This option is obsolete and DNS_SERVER_RECURSION_NETWORK_ACL should be used instead. #Environment=DNS_SERVER_ENABLE_BLOCKING=false #Sets the DNS server to block domain names using Blocked Zone and Block List Zone. #Environment=DNS_SERVER_ALLOW_TXT_BLOCKING_REPORT=false #Specifies if the DNS Server should respond with TXT records containing a blocked domain report for TXT type requests. #Environment=DNS_SERVER_BLOCK_LIST_URLS= #A comma separated list of block list URLs. #Environment=DNS_SERVER_FORWARDERS=1.1.1.1, 8.8.8.8 #Comma separated list of forwarder addresses. #Environment=DNS_SERVER_FORWARDER_PROTOCOL=Tcp #Forwarder protocol options: Udp, Tcp, Tls, Https, HttpsJson. Environment=DNS_SERVER_LOG_USING_LOCAL_TIME=true #Enable this option to use local time instead of UTC for logging. Environment=DNS_SERVER_LOG_FOLDER_PATH=/var/log/technitium/dns #The folder path on the server where the log files should be saved. #Environment=DNS_SERVER_LOG_MAX_LOG_FILE_DAYS=365 #Max number of days to keep the log files. Log files older than the specified number of days will be deleted automatically. Set 0 to disable auto delete. #Environment=DNS_SERVER_STATS_ENABLE_IN_MEMORY_STATS=false #This option will enable in-memory stats and only Last Hour data will be available on Dashboard. No stats data will be stored on disk. #Environment=DNS_SERVER_STATS_MAX_STAT_FILE_DAYS=365 #Max number of days to keep the dashboard stats. Stat files older than the specified number of days will be deleted automatically. Set 0 to disable auto delete. Sysctl='net.ipv4.ip_local_port_range=1024 65535' AutoUpdate=registry [Service] Restart=always [Install] WantedBy=default.target links: - path: /etc/resolv.conf target: /run/systemd/resolve/resolv.conf overwrite: true - path: /var/home/core/.config/systemd/user/default.target.wants/podman-auto-update.timer target: /usr/lib/systemd/user/podman-auto-update.timer user: name: core group: name: core passwd: users: - name: core groups: - wheel # The default password hash below set a password of "TechnitiumAdmin" and you should change it. password_hash: $y$j9T$h2NQ4ZA7nnwA7P4W8sBKs1$H9gGJO2KbsJY5nheCEt9OqpCIF/PCP4wvbcadaznK.6 #ssh_authorized_keys: # -