effectivelywild.technitium_dns.technitium_dns_set_server_settings module – Update DNS server settings
Note
This module is part of the effectivelywild.technitium_dns collection (version 1.1.2).
It is not included in ansible-core.
To check whether it is installed, run ansible-galaxy collection list.
To install it, use: ansible-galaxy collection install effectivelywild.technitium_dns.
To use it in a playbook, specify: effectivelywild.technitium_dns.technitium_dns_set_server_settings.
New in effectivelywild.technitium_dns 1.1.0
Synopsis
Update Technitium DNS server settings.
Parameters
Parameter |
Comments |
|---|---|
Include TXT blocking report for TXT queries. Choices:
|
|
Port for the Technitium DNS API. Defaults to 5380 Default: |
|
API token for authenticating with the Technitium DNS API |
|
Base URL for the Technitium DNS API |
|
TTL in seconds for blocking responses. |
|
Networks allowed to bypass blocking. |
|
Response type for blocked domains. Choices:
|
|
Interval in hours to update block lists. |
|
Block list URLs. Use clear_blockListUrls to remove all block list URLs. |
|
Failure TTL value for caching ServerFailure responses. |
|
Maximum cache entries. |
|
Maximum TTL allowed in cache. |
|
Minimum TTL allowed in cache. |
|
Negative TTL value. |
|
Minimum initial TTL to be eligible for prefetching. |
|
Minimum hits per hour to be eligible for auto prefetch. |
|
Interval to sample eligible domains for auto prefetch. |
|
TTL trigger to start prefetch; 0 disables. |
|
Clear all block list URLs. Cannot be used together with blockListUrls. Choices:
|
|
Clear all forwarders to use recursion. Cannot be used together with forwarders. Choices:
|
|
Clear all IPv4 prefix limits. Cannot be used together with qpmPrefixLimitsIPv4. Choices:
|
|
Clear all IPv6 prefix limits. Cannot be used together with qpmPrefixLimitsIPv6. Choices:
|
|
Clear recursion network ACL entries. Cannot be used together with recursionNetworkACL. Choices:
|
|
Clear all TSIG keys. Cannot be used together with tsigKeys. Choices:
|
|
Time in ms before responding ServerFailure when no answer (1000-10000). |
|
Query multiple forwarders concurrently. Choices:
|
|
Custom addresses returned when blockingType is CustomAddress. |
|
Default TTL value for records when not specified. |
|
Default SOA Responsible Person email for new primary zones. |
|
Enable automatic DNS App updates every 24 hours. Choices:
|
|
TCP port for DNS-over-HTTP. |
|
Header to read client IP for DNS-over-HTTP when behind reverse proxy. |
|
TCP port for DNS-over-HTTPS. |
|
UDP port for DNS-over-QUIC. |
|
TCP port for DNS-over-TCP-PROXY. |
|
TCP port for DNS-over-TLS. |
|
UDP port for DNS-over-UDP-PROXY. |
|
Enable DNSSEC validation for responses. Choices:
|
|
Primary domain name used by this DNS Server to identify itself. |
|
IPv4 source addresses to use for outbound DNS requests. |
|
IPv6 source addresses to use for outbound DNS requests. |
|
List of IP:port endpoints to listen for DNS requests. |
|
Password for DNS TLS certificate. |
|
PKCS |
|
Enable EDNS Client Subnet. Choices:
|
|
IPv4 network to use as ECS override. |
|
EDNS Client Subnet IPv4 prefix length. |
|
IPv6 network to use as ECS override. |
|
EDNS Client Subnet IPv6 prefix length. |
|
Enable blocking via blocked zones and lists. Choices:
|
|
Accept DNS-over-HTTP requests. Choices:
|
|
Accept DNS-over-HTTP/3 requests. Choices:
|
|
Accept DNS-over-HTTPS requests. Choices:
|
|
Accept DNS-over-QUIC requests. Choices:
|
|
Accept DNS-over-TCP-PROXY requests. Choices:
|
|
Accept DNS-over-TLS requests. Choices:
|
|
Accept DNS-over-UDP-PROXY requests. Choices:
|
|
Store only last hour stats in memory (no disk stats). Choices:
|
|
Legacy flag for enabling logging (use loggingType). Choices:
|
|
Enable UDP socket pool for outbound DNS-over-UDP requests. Choices:
|
|
Number of concurrent requests per forwarder. |
|
Forwarder transport protocol. Choices:
|
|
Number of forwarder retries. |
|
Forwarders list. Use clear_forwarders to remove all forwarders and use recursion. |
|
Forwarder timeout in ms. |
|
Stop logging resolver errors. Choices:
|
|
Max pending inbound connections. |
|
Folder path for log files. |
|
How error/audit logs are written. Choices:
|
|
Log every query and response. Choices:
|
|
Max concurrent outbound resolutions per CPU core. |
|
Max days to keep log files; 0 disables auto delete. |
|
Max days to keep dashboard stats; 0 disables auto delete. |
|
Minimum refresh interval for secondary, stub, and catalog zones. |
|
Minimum retry interval for secondary, stub, and catalog zones. |
|
Networks allowed to notify all secondary zones. |
|
Prefer IPv6 for querying when possible. Choices:
|
|
Proxy server hostname or IP. |
|
Bypass list for proxy (IP, CIDR, or hostnames). |
|
Proxy password. |
|
Proxy server port. |
|
Proxy protocol for outbound DNS. Choices:
|
|
Proxy username. |
|
Enable QNAME minimization for recursive resolution. Choices:
|
|
Networks allowed to bypass QPM limit. |
|
Client query stats sample size in minutes. |
|
Percentage of UDP requests truncated when QPM limit exceeds (0-100). |
|
List of IPv4 prefix limits. Use clear_qpmPrefixLimitsIPv4 to remove all entries. |
|
IPv4 prefix length to limit (e.g. 32, 24) |
|
Allowed TCP queries per minute for the prefix |
|
Allowed UDP queries per minute for the prefix |
|
List of IPv6 prefix limits. Use clear_qpmPrefixLimitsIPv6 to remove all entries. |
|
IPv6 prefix length to limit (e.g. 128, 64) |
|
Allowed TCP queries per minute for the prefix |
|
Allowed UDP queries per minute for the prefix |
|
Idle timeout in ms for QUIC connections (1000-90000). |
|
Max inbound bidirectional streams per QUIC connection (1-1000). |
|
Enable QNAME randomization. Choices:
|
|
Recursion policy. Choices:
|
|
ACL for recursion when policy is UseSpecifiedNetworkACL. Use clear_recursionNetworkACL to remove entries. |
|
Number of concurrent resolver requests. |
|
Max resolver stack count. |
|
Number of resolver retries. |
|
Resolver timeout in ms. |
|
ACL for reverse proxy sources. |
|
Save DNS cache on disk at shutdown. Choices:
|
|
Serve stale records when upstream unavailable. Choices:
|
|
TTL in seconds for answers in stale response (0-300). |
|
Max wait time in ms before serving stale records (0-1800). |
|
TTL reset value in seconds when refresh fails (10-900). |
|
TTL in seconds for stale records (max 604800). |
|
Ports to exclude from UDP socket pool. |
|
Max time in ms to receive TCP data (1000-90000). |
|
Max time in ms to send TCP response (1000-90000). |
|
List of TSIG keys. Use clear_tsigKeys to remove all keys. |
|
TSIG algorithm name (e.g. hmac-sha256) |
|
TSIG key name |
|
Base64-encoded shared secret |
|
Maximum EDNS UDP payload size (512-4096). |
|
Use local time for logging. Choices:
|
|
Use SOA serial date scheme as default for new zones. Choices:
|
|
Whether to validate SSL certificates when making API requests. Choices:
|
|
Enable HTTP/3 for web service. Choices:
|
|
Enable HTTPS service. Choices:
|
|
HTTP port for web console/API. |
|
Redirect HTTP to HTTPS. Choices:
|
|
Local addresses for web service. |
|
Header to read client IP when behind reverse proxy. |
|
Password for TLS certificate file. |
|
Path to PKCS |
|
HTTPS port for web console. |
|
Use self-signed certificate when TLS cert path is not set. Choices:
|
|
Networks allowed for zone transfers across all zones. |
See Also
See also
- effectivelywild.technitium_dns.technitium_dns_get_server_settings
Get DNS server settings
Examples
- name: Enable HTTPS for web service
effectivelywild.technitium_dns.technitium_dns_set_server_settings:
api_url: "http://localhost"
api_token: "myapitoken"
webServiceEnableTls: true
webServiceTlsPort: 53443
webServiceUseSelfSignedTlsCertificate: true
- name: Configure resolver behavior and logging
effectivelywild.technitium_dns.technitium_dns_set_server_settings:
api_url: "http://localhost"
api_token: "myapitoken"
resolverTimeout: 2000
resolverRetries: 3
loggingType: File
logQueries: true
- name: Set forwarders with HTTPS transport
effectivelywild.technitium_dns.technitium_dns_set_server_settings:
api_url: "http://localhost"
api_token: "myapitoken"
forwarders:
- "1.1.1.1"
- "1.0.0.1"
forwarderProtocol: Https
forwarderTimeout: 1500
Return Values
Common return values are documented here, the following are the fields unique to this module:
Key |
Description |
|---|---|
Whether the module made changes Returned: always |
|
Dictionary showing which settings changed Returned: when changes are detected Sample: |
|
Whether the module failed Returned: always |
|
Human readable message describing the result Returned: always |
|
Updated DNS server settings returned by the API Returned: always |