What's the cause of the error 'getaddrinfo EAI_AGAIN'?

dns, error-handling, javascript, node.js, shopify

Solution

EAI_AGAIN is a DNS lookup timed out error, means it is a network connectivity error or proxy related error.

My main question is what does dns.js do?

- The dns.js is there for node to get ip address of the domain(in brief).

Some more info: http://www.codingdefined.com/2015/06/nodejs-error-errno-eaiagain.html

Problem

My server threw this today, which is a Node.js error I've never seen before: ``` Error: getaddrinfo EAI_AGAIN my-store.myshopify.com:443 at Object.exports._errnoException (util.js:870:11) at errnoException (dns.js:32:15) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:78:26) ``` I'm wondering if this is related to the DynDns DDOS attack which affected Shopify and many other services today. Here's an article about that. My main question is what does `dns.js` do? What part of node is it a part of? How can I recreate this error with a different domain?

Original source