summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorAntoine Beaupré <anarcat@koumbit.org>2015-07-17 13:42:10 -0400
committerAntoine Beaupré <anarcat@koumbit.org>2015-07-17 13:42:10 -0400
commit400add98326c8664db71a3138b0ec7b2948fb2e6 (patch)
tree62a15bd1ae7d66f59fc876ec96236e67904e03d5 /templates
parentf656ae3328c1df7d8ea45ac7c0183e6f5805732c (diff)
allow appending arbitrary stuff to the resolv.conf
this is useful in Linux to add an 'options' line
Diffstat (limited to 'templates')
-rw-r--r--templates/resolvconf.OpenBSD.erb4
-rw-r--r--templates/resolvconf.erb4
2 files changed, 8 insertions, 0 deletions
diff --git a/templates/resolvconf.OpenBSD.erb b/templates/resolvconf.OpenBSD.erb
index f8727d7..9cf2902 100644
--- a/templates/resolvconf.OpenBSD.erb
+++ b/templates/resolvconf.OpenBSD.erb
@@ -3,3 +3,7 @@ lookup file bind
<% Array(@nameservers).each do |nameserver| -%>
nameserver <%= nameserver %>
<% end -%>
+
+<% if @tail -%>
+<%= tail %>
+<% end -%>
diff --git a/templates/resolvconf.erb b/templates/resolvconf.erb
index 2a1f1e8..d11327d 100644
--- a/templates/resolvconf.erb
+++ b/templates/resolvconf.erb
@@ -9,3 +9,7 @@ search <%= @search %>
<% Array(@nameservers).each do |nameserver| -%>
nameserver <%= nameserver %>
<% end -%>
+
+<% if @tail -%>
+<%= tail %>
+<% end -%>