<% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
server <%= address %> backup; # Server <%= cache[:hostname] %>
<% end -%>
<% cache.ipaddresses(:family => :inet, :role => :external).sort.each do |address| -%>
server <%= address %> backup; # Server <%= cache[:hostname] %>
<% end -%>