For powerdns, CAA values have to be quoted.
This commit is contained in:
parent
0d8f4b4620
commit
04ac548915
@ -766,11 +766,11 @@ class DNSManager::Storage::Zone
|
|||||||
def to_s(io : IO)
|
def to_s(io : IO)
|
||||||
io << "(#{ "%4d" % @rrid }) "
|
io << "(#{ "%4d" % @rrid }) "
|
||||||
io << "#{ "%.30s" % @name} #{ "%6d" % @ttl} CAA "
|
io << "#{ "%.30s" % @name} #{ "%6d" % @ttl} CAA "
|
||||||
io << "#{ "%.3s" % @caa.flag} #{ "%.15s" % @caa.tag} #{@caa.value}\n"
|
io << "#{ "%.3s" % @caa.flag} #{ "%.15s" % @caa.tag} #{quoted_string @caa.value}\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def to_bind9(io : IO)
|
def to_bind9(io : IO)
|
||||||
io << "#{@name} #{@ttl} IN CAA #{@caa.flag} #{@caa.tag.to_s.downcase} #{@caa.value}\n"
|
io << "#{@name} #{@ttl} IN CAA #{@caa.flag} #{@caa.tag.to_s.downcase} #{quoted_string @caa.value}\n"
|
||||||
end
|
end
|
||||||
|
|
||||||
def get_errors : Array(Error)
|
def get_errors : Array(Error)
|
||||||
|
Loading…
Reference in New Issue
Block a user