Node can't resolve domain.

September 26, 2015 490 views
DNS Node.js Ubuntu

My nodejs application cannot resolve the IP of "pgd.lbngateway.com". But I could nslookup it on the same droplet. I ended up putting it in /etc/hosts but cannot figure out why the application fails to resolve it with getaddrinfo. I was able to resolve the IP with node on my local machine but not on the droplet so I am even more lost as to why it might not be working.

Be the first one to answer this question.