lib/dyndnsd/generator/bind.rb in dyndnsd-0.0.2 vs lib/dyndnsd/generator/bind.rb in dyndnsd-0.0.3

- old
+ new

@@ -5,10 +5,11 @@ def initialize(domain, config) @domain = domain @ttl = config['ttl'] @dns = config['dns'] @email_addr = config['email_addr'] + @additional_zone_content = config['additional_zone_content'] end def generate(zone) out = [] out << "$TTL #{@ttl}" @@ -19,9 +20,11 @@ out << "" zone['hosts'].each do |hostname,ip| name = hostname.chomp('.' + @domain) out << "#{name} IN A #{ip}" end + out << "" + out << @additional_zone_content out << "" out.join("\n") end end end