feat(dns): add dns options
This commit is contained in:
parent
312df44fcd
commit
9ce3d2b888
3 changed files with 5 additions and 0 deletions
|
|
@ -21,6 +21,7 @@ debian_repo_url_update: "http://deb.debian.org/debian"
|
||||||
dns_search: "example.internal"
|
dns_search: "example.internal"
|
||||||
dns_servers:
|
dns_servers:
|
||||||
- "192.168.10.1"
|
- "192.168.10.1"
|
||||||
|
dns_options: []
|
||||||
|
|
||||||
# firewall
|
# firewall
|
||||||
firewall_enable: true
|
firewall_enable: true
|
||||||
|
|
|
||||||
|
|
@ -22,6 +22,7 @@ Manage core Operating System components and system defaults.
|
||||||
|----------------|----------|--------------------------|--------------------------------|
|
|----------------|----------|--------------------------|--------------------------------|
|
||||||
| `dns_servers` | No | `["192.168.10.1"]` | List of DNS nameservers to use |
|
| `dns_servers` | No | `["192.168.10.1"]` | List of DNS nameservers to use |
|
||||||
| `dns_search` | No | `["example.internal"]` | List of search domains to use |
|
| `dns_search` | No | `["example.internal"]` | List of search domains to use |
|
||||||
|
| `dns_options` | No | `[]` | List of resolver options |
|
||||||
|
|
||||||
### NTP Configuration
|
### NTP Configuration
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -4,3 +4,6 @@ nameserver {{ dns_server }}
|
||||||
{% if "example" not in dns_search -%}
|
{% if "example" not in dns_search -%}
|
||||||
search {{ dns_search }}
|
search {{ dns_search }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% if dns_options -%}
|
||||||
|
options {{ dns_options | join(' ') }}
|
||||||
|
{% endif %}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue