<% @hosts.keys.sort.each do |host_name| %>
<%= "#{@hosts[host_name]} #{host_name}" %>
<% end %>


<% @hosts.keys.sort.each do |host_name|
     @hosts[host_name].split(' ').each do |ip| -%>
<%=    "#{ip} #{host_name}" %>
<%   end
   end -%>

Allow many-to-many in hosts dnsmasq.dns.hosts attributes
Allow many-to-many in hosts dnsmasq.dns.hosts attributes

Allow setting multiple IPs in the hostname => IP hash,
separated by spaces.
dnsmasq will answer queries with multiple A records.

Setting multiple hostnames already works as-is.

ex.: :hosts => { "example.com www.example.com" => "1.2.3.4 1.2.3.5" }
