Hi, I have nodejs app on my centos7 server witch is a ipv4 server.
I am making http calls to another api server (Its not mine)
Sometimes in the logs I am getting this error OperationalError: connect ENETUNREACH 2606:4700:3031::6818:6e0a:443 - Local (:::0)
This ip 2606:4700:3031::6818:6e0a is owned by clouadflare. So what can I do to fix this? shouldn’t cloadflare take care of this automatically? Or is the target site is setup to be used as ipv6 only??
And there obviously is an IP address behind a URL. The hostname you mentioned resolves that very IP address. As I said you need to make sure you are not connecting via IPv6, if your system doesnt support it. However that is not exactly a Cloudflare issue.
When you put your website behind cloadflare, you have to change the dns to cloadflare’s dns. That is what you are seeing !!! that is the cloadflare’s IP, nslookup is showing you the cloadflares IP not the destination IP