# vim: set syntax=yaml: variant: fcos version: 1.7.0 systemd: units: - name: podman-auto-update.timer enabled: true storage: directories: - path: /etc/technitium user: name: core group: name: core mode: 0755 - path: /etc/technitium/config user: name: core group: name: core mode: 0755 - path: /etc/technitium/logs user: name: core group: name: core mode: 0755 files: - path: /etc/hostname mode: 0644 contents: inline: | technitium.internal - path: /etc/zincati/config.d/50-update-strategy.toml mode: 0644 contents: inline: | [updates] strategy = "periodic" [[updates.periodic.window]] days = [ "Sat", "Sun" ] start_time = "07:00" length_minutes = 60 # 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/systemd/resolved.conf.d/disable-stub.conf mode: 0644 contents: inline: | [Resolve] DNSStubListener=no - path: /etc/containers/systemd/technitium/technitium.container mode: 0644 contents: inline: | [Unit] Description=Technitium DNS Server [Container] Image=docker.io/technitium/dns-server:latest ContainerName=technitium Volume=/etc/technitium/config:/etc/dns:Z Volume=/etc/technitium/logs:/var/log/technitium/dns:Z Network=host # 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' HealthCmd=CMD-SHELL dig +short +tries=1 +norecurse @127.0.0.1 example.com || exit 1 HealthInterval=10s HealthTimeout=5s HealthRetries=3 HealthStartPeriod=90s AutoUpdate=registry [Service] Restart=always [Install] WantedBy=default.target links: - path: /etc/resolv.conf target: /run/systemd/resolve/resolv.conf overwrite: true 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: - ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIHt5t46RUmxq0X1h+9G1b7vmwrEMgSFQapqOF18P3QYn