2014-08-18 08:29:43 +00:00
|
|
|
@ IN SOA <%= data["zone"]["soa"] %> hostmaster (
|
|
|
|
<%= data["zone"]["serial"] %> ; serial
|
|
|
|
<%= data["zone"]["refresh"] %> ; refresh
|
|
|
|
<%= data["zone"]["retry"] %> ; retry
|
|
|
|
<%= data["zone"]["expire"] %> ; expire
|
|
|
|
<%= data["zone"]["minimum"] %>) ; minimum
|
|
|
|
NS <%= data["zone"]["ns"] %>
|
|
|
|
|
|
|
|
<% data["network"].each do |name, value| %>
|
|
|
|
<% if value["cname"] -%>
|
|
|
|
<%= name %> CNAME <%= value["cname"] %>
|
|
|
|
<% end -%>
|
2015-01-03 16:57:39 +00:00
|
|
|
<% if value["srv"] -%>
|
|
|
|
<%= name %> SRV <%= value["srv"] %>
|
|
|
|
<% end -%>
|
2014-08-18 08:29:43 +00:00
|
|
|
<% if value["ipv4"] -%>
|
|
|
|
<%= name %> A <%= ip(value["ipv4"]) %>
|
|
|
|
ipv4.<%= name %> A <%= ip(value["ipv4"]) %>
|
|
|
|
<% end -%>
|
|
|
|
<% if value["ipv6"] -%>
|
|
|
|
<%= name %> AAAA <%= ip(value["ipv6"]) %>
|
|
|
|
ipv6.<%= name %> AAAA <%= ip(value["ipv6"]) %>
|
|
|
|
<% end -%>
|
|
|
|
<% end -%>
|