Story#105418634 Update Whois body

This commit is contained in:
Vladimir Krylov 2015-10-28 20:10:12 +02:00
parent a5bce57915
commit a2d039bb2e
2 changed files with 67 additions and 62 deletions

View file

@ -0,0 +1,60 @@
Estonia .ee Top Level Domain WHOIS server
Domain:
name: <%= json[:name] %>
<%- for st in Array(json[:status]) -%>
status: <%= st %>
<%- end -%>
registered: <%= json[:registered].to_s.tr('T',' ').sub('+', ' +') %>
changed: <%= json[:changed].to_s.tr('T',' ').sub('+', ' +') %>
expire: <%= json[:expire].to_s.tr('T',' ').sub('+', ' +') %>
outzone: <%= json[:outzone].to_s.tr('T',' ').sub('+', ' +') %>
delete: <%= json[:delete].to_s.tr('T',' ').sub('+', ' +') %>
Registrant:
name: <%= json[:registrant] %>
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: <%= json[:changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- if json[:admin_contacts].present? -%>
Administrative contact
<%- for contact in json[:admin_contacts] -%>
name: <%= contact[:name] %>
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: <%= contact[:changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- end -%>
<%- end -%>
<% if json[:tech_contacts].present? %>
Technical contact:
<%- for contact in json[:admin_contacts] -%>
name: <%= contact[:name] %>
email: Not Disclosed - Visit www.internet.ee for webbased WHOIS
changed: <%= contact[:changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- end -%>
<%- end -%>
Registrar:
name: <%= json[:registrar] %>
url: <%= json[:registrar_url] %>
phone: <%= json[:registrar_phone] %>
changed: <%= json[:registrar_changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- if json[:nameservers].present? -%>
Name servers:
<%- for server in json[:nameservers] -%>
nserver: <%= server %>
<%- end -%>
changed: <%= json[:nameservers_changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- end -%>
<%- if json[:dnssec_keys].present? -%>
DNSSEC:
<%- for key in json[:dnssec_keys] -%>
dnskey: <%= key %>
<%- end -%>
changed: <%= json[:dnssec_changed].to_s.tr('T',' ').sub('+', ' +') %>
<%- end -%>
Estonia .ee Top Level Domain WHOIS server
More information at http://internet.ee