blob: 6ea9fba1f2933a5e1546af50ab1d9db1b42b8f5a [file] [log] [blame]
{%- from "linux/map.jinja" import network with context -%}
# Managed by Salt
{%- if network.resolv.domain is defined %}
domain {{ network.resolv.domain }}
{%- endif %}
{%- if network.resolv.search is defined %}
search {{ network.resolv.search|join(' ') }}
{%- endif %}
{%- for ns in network.resolv.dns|d([]) %}
nameserver {{ ns }}
{%- endfor %}
{%- for opt in network.resolv.options|d([]) %}
options {{ opt }}
{%- endfor %}