Add dnssec info to domain info query

This commit is contained in:
Martin Lensment 2014-10-02 12:36:41 +03:00
parent 338a58a611
commit c8863df4c5
4 changed files with 65 additions and 21 deletions

View file

@ -36,6 +36,17 @@ xml.epp_head do
end
end
xml.tag!('domain:dnssec') do
@domain.dnskeys.each do |x|
xml.tag!('domain:dnskey') do
xml.tag!('domain:flags', x.flags)
xml.tag!('domain:protocol', x.protocol)
xml.tag!('domain:alg', x.alg)
xml.tag!('domain:pubKey', x.public_key)
end
end
end if @domain.dnskeys.any?
## TODO Find out what this domain:host is all about
xml.tag!('domain:clID', @domain.owner_contact_code)