Permalink
Browse files

support 'domain' and 'registrar' properties on whois.dns.be.rb

  • Loading branch information...
1 parent ea7f507 commit cf8ae66b9f00121747d106cb0d9a13ae3a2bac97 Chuck Adams committed Mar 27, 2013
Showing with 17 additions and 0 deletions.
  1. +17 −0 lib/whois/record/parser/whois.dns.be.rb
@@ -76,6 +76,23 @@ class WhoisDnsBe < Base
end
+ # EXAMPLE: nic.be
+ # Domain: nic.be
+ property_supported :domain do
+ content_for_scanner.slice(/Domain:\s*(.+?)\n/, 1)
+ end
+
+ # EXAMPLE: nic.be
+ # Registrar:
+ # Name: Telenet NV
+ # Website: www.hostbasket.com
+ property_supported :registrar do
+ name = content_for_scanner.slice(/Registrar:\s+Name:(.+?)\s*Website:(.+?)\n/, 1)
+ url = content_for_scanner.slice(/Registrar:\s+Name:(.+?)\s*Website:(.+?)\n/, 2)
+ name and url and Record::Registrar.new(:name => name.strip, :url => url.strip)
+ end
+
+
# Checks whether the response has been throttled.
#
# @return [Boolean]

0 comments on commit cf8ae66

Please sign in to comment.