blob: 43fb75d3282b2265e082d094b884ab6f8ff4b1b9 [file] [log] [blame]
{%- from "linux/map.jinja" import network with context %}# Dynamic resolv.conf(5) file for glibc resolver(3) generated by salt-minion(1)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
{% if network.resolv.get('search', False) -%}
search {{ network.resolv.search|join(' ') }}
{%- endif %}
{% if network.resolv.get('domain', False) -%}
domain {{ network.resolv.domain }}
{%- endif %}
{%- for nameserver in network.resolv.dns %}
nameserver {{ nameserver }}
{%- endfor %}
{%- if network.resolv.get('options', False) %}
{%- for option in network.resolv.options %}
options {{ option }}
{%- endfor %}
{%- endif %}