likexian / whois

Whois client for domain and ip whois information query in Go(Golang).
Apache License 2.0
382 stars 70 forks source link

Improve getServer() parser #26

Closed zcalusic closed 1 year ago

zcalusic commented 1 year ago

Fixes this error:

connect to whois server failed: dial tcp: lookup tcp///whois.namecheap.com: Servname not supported for ai_socktype

Observed on an org TLD domain, whose whois response contains:

Registrar WHOIS Server: http://whois.namecheap.com

likexian commented 1 year ago

Hello @zcalusic Thanks for your PR.