lxc-config/hooks/templates/rdns-zone.erb

16 lines
631 B
Plaintext

@ IN SOA <%= data["zone"]["soa"] %> <%= data["zone"]["hostmaster"] %>. (
<%= data["zone"]["serial"] %> ; serial
<%= data["zone"]["refresh"] %> ; refresh
<%= data["zone"]["retry"] %> ; retry
<%= data["zone"]["expire"] %> ; expire
<%= data["zone"]["minimum"] %>) ; minimum
<% data["network"].each do |name, value| -%>
<% if value["ns"] -%>
IN NS <%= fqdn(name) %>.<%= data["zone"]["domain"] %>.
<% end -%>
<% end -%>
<% zone.pointers do |name, addr| -%>
<%= addr %> PTR <%= fqdn(name) %>.<%= data["zone"]["domain"] %>.
<% end -%>