Skip to content

Instantly share code, notes, and snippets.

@smgt
Created May 6, 2009 06:41
Show Gist options
  • Save smgt/107397 to your computer and use it in GitHub Desktop.
Save smgt/107397 to your computer and use it in GitHub Desktop.
diff --git a/lib/universal_ruby_whois/server_list.rb b/lib/universal_ruby_whois/server_list.rb
index 65c2a18..15a94d9 100644
--- a/lib/universal_ruby_whois/server_list.rb
+++ b/lib/universal_ruby_whois/server_list.rb
@@ -80,7 +80,6 @@ Whois::Server.define('nu', 'whois.nic.nu')
Whois::Server.define('pl', 'whois.dns.pl')
Whois::Server.define('ro', 'whois.rotld.ro')
Whois::Server.define('ru', 'whois.ripn.net')
-Whois::Server.define('se', 'whois.iis.se')
Whois::Server.define('sk', 'whois.ripe.net')
Whois::Server.define('tc', 'whois.adamsnames.tc')
Whois::Server.define('vg', 'whois.adamsnames.tc')
@@ -122,6 +121,7 @@ Whois::Server.define(%w(asn.au com.au id.au net.au org.au), 'whois.aunic.net',
:registered => /No Data Found/im.invert!,
:error => /BLACKLISTED/m )
+
Whois::Server.define(
%w(hk com.hk net.hk edu.hk org.hk gov.hk idv.hk),
'whois.hkdnr.net.hk',
@@ -210,6 +210,12 @@ Whois::Server.define(
:error => /invalid domain/im,
:preserved => /excluded/im
)
+Whois::Server.define('se', 'whois.iis.se',
+ :free => /not found/im,
+ :registered => /not found/im.invert!,
+ :creation_date => /(created)\s*[\:\.\]]*\s*([\w\-\:\ \/]+)[^\n\r]*[\n\r]/im,
+ :expiration_date => /(expires)\s*[\:\.\]]*\s*([\w\-\:\ \/]+)[^\n\r]*[\n\r]/im
+)
Whois::Server.define(
'org',
'whois.publicinterestregistry.net',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment