A simple Whois server with a simple simple API and a front-end built with AngularJS.

lookup.haml 1.1KB

    !!! %html %head %title A free whois API service %link{:rel => "stylesheet", :type => "text/css", :href => "/css/styles.css"} %body .info %p.title URL %p.content = @formatted_response["domain"] .info %p.title Admin Contact %p.content - if @formatted_response["admin_contacts"] - @formatted_response["admin_contacts"].each do |contact| = "<strong>" + contact[0].to_s + "</strong>: " + contact[1].to_s + "<br />" - else = "none" .info %p.title Technical Contact %p.content - if @formatted_response["technical_contacts"] - @formatted_response["technical_contacts"].each do |contact| = contact.to_s + " <br />" - else = "none" .info %p.title Create Date %p.content = @formatted_response["created_on"] .info %p.title Expire Date %p.content = @formatted_response["expires_on"] .info %p.title WHOIS Server %p.content = @formatted_response["whois_server"] .info %p.title Nameservers %p.content - @formatted_response["nameservers"].each do |name| = name.to_s + " <br />"