lib/dyndnsd/generator/bind.rb in dyndnsd-3.0.0 vs lib/dyndnsd/generator/bind.rb in dyndnsd-3.1.0.rc1

- old
+ new

@@ -25,10 +25,10 @@ out << '' db['hosts'].each do |hostname, ips| ips.each do |ip| ip = IPAddr.new(ip).native type = ip.ipv6? ? 'AAAA' : 'A' - name = hostname.chomp('.' + @domain) + name = hostname.chomp(".#{@domain}") out << "#{name} IN #{type} #{ip}" end end out << '' out << @additional_zone_content