diff options
-rw-r--r-- | templates/resolv.conf.tmpl | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/templates/resolv.conf.tmpl b/templates/resolv.conf.tmpl index bfae80db..b6d46b4b 100644 --- a/templates/resolv.conf.tmpl +++ b/templates/resolv.conf.tmpl @@ -21,10 +21,18 @@ domain {{domain}} sortlist {% for sort in sortlist %}{{sort}} {% endfor %} {% endif %} +{# + Flags and options are required to be on the + same line preceded by "options" keyword +#} {% if options or flags %} -options {% for flag in flags %}{{flag}} {% endfor %} -{% for key, value in options.items() -%} - {{key}}:{{value}} +options +{%- for flag in flags %} + {{flag-}} +{% endfor %} + +{%- for key, value in options.items() %} + {{key}}:{{value-}} {% endfor %} {% endif %} |