mirror of
https://github.com/cmur2/dyndnsd.git
synced 2024-12-21 14:54:22 +01:00
Allow additional raw zone content for Bind generator
This commit is contained in:
parent
a8d5c0bd93
commit
99111ce459
@ -7,6 +7,7 @@ module Dyndnsd
|
||||
@ttl = config['ttl']
|
||||
@dns = config['dns']
|
||||
@email_addr = config['email_addr']
|
||||
@additional_zone_content = config['additional_zone_content']
|
||||
end
|
||||
|
||||
def generate(zone)
|
||||
@ -22,6 +23,8 @@ module Dyndnsd
|
||||
out << "#{name} IN A #{ip}"
|
||||
end
|
||||
out << ""
|
||||
out << @additional_zone_content
|
||||
out << ""
|
||||
out.join("\n")
|
||||
end
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user