Skip to content

Commit

Permalink
[GH-27] Added support for sortlist resolv.conf option. (#78)
Browse files Browse the repository at this point in the history
  • Loading branch information
Punicaa authored Jan 29, 2024
1 parent a16432a commit 963f6ff
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ This file is used to list changes made in each version of the resolver cookbook.

## Unreleased

- Added support for sortlist option in resolv.conf

## 4.1.6 - *2023-12-21*

## 4.1.5 - *2023-10-03*
Expand Down
3 changes: 3 additions & 0 deletions templates/default/resolv.conf.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ domain <%= @domain %>
<% unless nil_or_empty?(@search) -%>
search <%= @search.join(' ') %>
<% end -%>
<% unless nil_or_empty?(@sortlist) -%>
sortlist <%= @sortlist.join(' ') %>
<% end -%>
<% @nameservers.each do |nameserver| -%>
nameserver <%= nameserver %>
<% end %>
Expand Down

0 comments on commit 963f6ff

Please sign in to comment.