richardpenman / whois

MIT License
382 stars 187 forks source link

Default parser does not have Registrar URL #218

Closed JezerM closed 6 months ago

JezerM commented 6 months ago

I've noticed that the default parser does not include the Registrar URL by default. Some suffix domains, like .com, provide this Registrar URL, but this library doesn't return it.

For example, take whois.whois("google.com"):

{
  "domain_name": [
    "GOOGLE.COM",
    "google.com"
  ],
  "registrar": "MarkMonitor, Inc.",
  "whois_server": "whois.markmonitor.com",
  ...
}

While the whois command returns:

Domain Name: google.com
Registry Domain ID: 2138514_DOMAIN_COM-VRSN
Registrar WHOIS Server: whois.markmonitor.com
Registrar URL: http://www.markmonitor.com
...

As well, there's more info that isn't included by default.

richardpenman commented 6 months ago

PR for this would be welcome!