A module for creating a resolv.conf file
Signed-off-by: Ossi Salmi <osalmi@iki.fi>
This commit is contained in:
parent
de5ed0ff7c
commit
3c0e4d26c2
2 changed files with 37 additions and 0 deletions
6
resolver/templates/resolv.conf.erb
Normal file
6
resolver/templates/resolv.conf.erb
Normal file
|
@ -0,0 +1,6 @@
|
|||
<% if !domainname.empty? %>domain <%= domainname %>
|
||||
<% end -%>
|
||||
<% if !searchpath.empty? %>search <%= searchpath.join(" ") %>
|
||||
<% end -%>
|
||||
<% nameservers.each do |ns| %>nameserver <%= ns %>
|
||||
<% end -%>
|
Loading…
Add table
Add a link
Reference in a new issue