Commit 1defe55a authored by Colin Shea's avatar Colin Shea

Move $ORIGIN and $TTL to above SOA

As reported by @do11 at https://github.com/boesemar/zonefile/issues/10
parent 8f625b72
......@@ -390,7 +390,12 @@ class Zonefile
; vim: set filetype=bindzone:
; Database file #{@filename || 'unknown'} for #{@origin || 'unknown'} zone.
; Zone version: #{self.soa[:serial]}
; Generated by dnsgit
;
#{@origin ? "$ORIGIN #{@origin.chomp('.')}." : ''}
#{@ttl ? "$TTL #{@ttl}" : ''}
#{self.soa[:origin]} #{self.soa[:ttl]} IN SOA #{self.soa[:primary]} #{self.soa[:email]} (
#{self.soa[:serial]} ; serial number
#{self.soa[:refresh]} ; refresh
......@@ -399,8 +404,6 @@ class Zonefile
#{self.soa[:minimumTTL]} ; minimum TTL
)
#{@origin ? "$ORIGIN #{@origin}" : ''}
#{@ttl ? "$TTL #{@ttl}" : ''}
ENDH
out << "\n; Zone NS Records\n" unless self.ns.empty?
self.ns.each do |ns|
......
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