News for hackers. Stuff that matters.
Re:Dark Patterns by the Boston Globe by onion2k on Monday April 25, 2016 @05:29AM (#11563239)
I did a quick Google and there's a few free whois API services that would fit the bill. They (presumably) all return the same data. So.. whichever works.

Alternatively a far more interesting (but much more difficult to set up) solution would be to use chrome.runtime.connectNative to execute the native whois command on the user's OS.

Re:Dark Patterns by the Boston Globe by kaoD on Monday April 25, 2016 @07:58AM (#11563657)
> would be to use chrome.runtime.connectNative to execute the native whois command on the user's OS

Can you elaborate please? I've taken a very brief look at the chrome.runtime API and didn't see how to.

Re:Dark Patterns by the Boston Globe by onion2k on Monday April 25, 2016 @08:29AM (#11563765)
There's some detailed documentation here https://developer.chrome.com/extensions/nativeMessaging and a sample app (for Chromium) here https://chromium.googlesource.com/chromium/src/+/master/chro...

Essentially you need to add a native messaging app manifest to Chrome to tell it about the app on the host, and then Chrome reads that JSON file to find where to execute it, what to use to talk to it (eg stdio), what it's called, etc. On Windows the location of the JSON file has to be added to the registry (which is prohibitively annoying), but on OSX and Linux it's just saved in a specific folder. Once you've done that it's a simple case of calling a method on the chrome.runtime object, or setting up a couple of listeners to actually make the call.

Re:Dark Patterns by the Boston Globe by ymse on Monday April 25, 2016 @08:02AM (#11563672)
whois already doesn't work for a lot of the new gTLDs and ICANN is in the process of reinventing it. So be prepared for loads of edge cases and keeping up with ICANNs flimsy mind.

https://whois.icann.org/en/whats-horizon

Re:Dark Patterns by the Boston Globe by guillon on Tuesday April 26, 2016 @06:19AM (#11570662)
Come on, don't be so negative.
Re:Dark Patterns by the Boston Globe by ymse on Wednesday April 27, 2016 @06:05PM (#11584973)
Didn't mean to be negative, just informative. Try any of the new gTLDs, e.g. "stuffin.space", "rms.sexy" or "abc.xyz", they won't work.

Or for a moderately amusing confirmation of ICANNs assertion that the current model is broken, try to whois microsoft.com, apple.com or google.com (NSFW language).

I think the current plan is to make whois data mandatory for commercial entities, and abolish the current decentralized model, but AFAIK no work has started yet.

Any negativity conveyed is purely by virtue of the grim state of affairs.

Edit: I just checked your profile and you probably know a lot more about the situation than I do. Feel free to correct me where I'm wrong! Your domain "gtld.club" does not work either, by the way :)