Commit 112915d3 authored by Colin Shea's avatar Colin Shea

rename named.conf to zones.conf

also fix the file names for zones
parent 6bd8d24f
......@@ -24,7 +24,7 @@ class ZoneGenerator
@template_dir = File.expand_path(@config['templates'], basedir)
@generated = File.expand_path(@config['output'], basedir)
@tmp_named = "#{@generated}/named.conf"
@tmp_named = "#{@generated}/zones.conf"
@tmp_zones = "#{@generated}/zones"
# Rewrite email address
......@@ -48,7 +48,7 @@ class ZoneGenerator
puts "Generating zone for '#{domain}'"
generate_zone(file, domain)
f.puts "zone \"#{domain}\" IN { type master; file \"#{@config['zones_dir']}/#{domain}\"; };"
f.puts "zone \"#{domain}\" IN { type master; file \"#{@config['zones_dir']}/#{domain}.zone\"; };"
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment