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

16 lines
630 B
Plaintext
Raw Normal View History

2015-03-30 22:02:32 +00:00
@ 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"] -%>
2015-08-05 15:33:37 +00:00
IN NS <%= fqdn(name) %>.<%= data["zone"]["domain"] %>.
<% end -%>
<% end -%>
2014-08-18 08:29:43 +00:00
2015-01-30 09:56:58 +00:00
<% zone.pointers do |name, addr| -%>
2015-08-05 15:33:37 +00:00
<%= addr %> PTR <%= fqdn(name) %>.<%= data["zone"]["domain"] %>.
2014-08-18 08:29:43 +00:00
<% end -%>