Fixed DNS templates and added support for Ubuntu 12.04 's way of creating resolv.conf.

This commit is contained in:
aes_ng 2012-11-05 16:53:31 +02:00 committed by Ossi Salmi
parent f72325de30
commit b6d34a1cf2
4 changed files with 18 additions and 1 deletions

View file

@ -11,6 +11,12 @@ iface <%= name %> inet <%= proto %>
<% if netmask != 'none' -%>
netmask <%= netmask %>
<% end -%>
<% if dnssearch != 'none' -%>
dns-search <%= dnssearch %>
<% end -%>
<% if dnsnameservers != 'none' -%>
dns-nameservers <%= dnsnameservers %>
<% end -%>
<% options.each do |val| -%>
<%= val %>
<% end -%>