mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 01:11:43 +02:00
Return detailed ns info with info request
This commit is contained in:
parent
a66450bdd1
commit
df6394d771
2 changed files with 16 additions and 2 deletions
|
@ -24,7 +24,15 @@ xml.epp_head do
|
|||
|
||||
xml.tag!('domain:ns') do
|
||||
@domain.nameservers.each do |x|
|
||||
xml.tag!('domain:hostObj', x.hostname)
|
||||
if x.ipv4.present? || x.ipv6.present?
|
||||
xml.tag!('domain:hostAttr') do
|
||||
xml.tag!('domain:hostName', x.hostname)
|
||||
xml.tag!('domain:hostAddr', x.ipv4, 'ip' => 'v4') if x.ipv4.present?
|
||||
xml.tag!('domain:hostAddr', x.ipv6, 'ip' => 'v6') if x.ipv6.present?
|
||||
end
|
||||
else
|
||||
xml.tag!('domain:hostObj', x.hostname)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue