Registrar .se & .nu #187

rendom opened this Issue Sep 19, 2012 · 1 comment


None yet
2 participants

rendom commented Sep 19, 2012

Testing out this gem and notice that that the parsing of .se and .nu not working correctly.
For example it not returning any Registrar.

ruby-1.9.2-p290 :007 > r=Whois.whois("")
 => "# Copyright (c) 1997- .SE (The Internet Infrastructure Foundation).\r\n# All rights reserved.\r\n\r\n# The information obtained through searches, or otherwise, is protected\r\n# by the Swedish Copyright Act (1960:729) and international conventions.\r\n# It is also subject to database protection according to the Swedish\r\n# Copyright Act.\r\n\r\n# Any use of this material to target advertising or\r\n# similar activities is forbidden and will be prosecuted.\r\n# If any of the information below is transferred to a third\r\n# party, it must be done in its entirety. This server must\r\n# not be used as a backend for a search engine.\r\n\r\n# Result of search for registered domain names under\r\n# the .SE top level domain.\r\n\r\n# The data is in the UTF-8 character set and the result is\r\n# printed with eight bits.\r\n\r\nstate:            active\r\ndomain: \r\nholder:           mmr8008-53808\r\nadmin-c:          -\r\ntech-c:           -\r\nbilling-c:        -\r\ncreated:          2008-10-20\r\nmodified:         2012-09-18\r\nexpires:          2013-10-20\r\ntransferred:      2009-03-06\r\nnserver:\r\nnserver:\r\nnserver:\r\nnserver:\r\ndnssec:           unsigned delegation\r\nstatus:           ok\r\nregistrar:        MarkMonitor Inc\r\n" 

ruby-1.9.2-p290 :008 > r.registrar
 => nil 

This regex work to get out registrar of .nu domains /Registrar of record: (.+?)\n/


weppos commented Sep 19, 2012

Hi @rendom, the reason for this is because the parser doesn't currently implement that property.

The design decision I took in the past was to return nil in case of unimplemented property, but I'm considering to re-think it and throw an exception in that case to make it more obvious.

weppos closed this Oct 16, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment