LayeredStudio / whoiser

🌍 Easy to use WHOIS info for domains, TLDs and IPs
MIT License
215 stars 32 forks source link

Error while getting WHOIS data from enom registrar #97

Closed elshahat closed 1 year ago

elshahat commented 1 year ago

Version(s) affected: 1.15.1

Description
I have an issue with getting the whois data from Enom registrar

How to reproduce
The issue is happening with any domain registered through Enom registrar and the test can be applied against the enom.com domain itself.

I'm using this package with NestJS and it's working fine locally but once deployed on my server I get this error:

[Nest] 9344  - 02/04/2023, 9:58:51 PM   ERROR [ExceptionsHandler] connect EHOSTUNREACH 2604:4000:2000:2000:98:124:224:8:43
Error: connect EHOSTUNREACH 2604:4000:2000:2000:98:124:224:8:43
    at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1494:16)

My server is running Ubuntu 22.04.1 LTS with Node v18.14.0 and npm 9.4.1

I'm not sure what is the issue exactly but I suspect the whoisQuery function.

Your support is highly appreciated

elshahat commented 1 year ago

I figured out the solution for this issue and it's by disabling IPv6 on my server