-
-
Notifications
You must be signed in to change notification settings - Fork 174
IPv6 localhost isn't defined in /etc/hosts on AIX #721
Copy link
Copy link
Closed
Description
This ws test is failing on CitGM because our AIX boxes are missing the ::1 localhost line from /etc/hosts, despite having IPv6 enabled. I have confirmed that appending that line fixes the issue (I then removed it again).
bash-4.3$ node -e "require('dns').lookup('localhost', {family: 6}, (err, address, family) => console.log(err,address,family))"
{ Error: getaddrinfo ENOTFOUND localhost
at errnoException (dns.js:28:10)
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:76:26)
code: 'ENOTFOUND',
errno: 'ENOTFOUND',
syscall: 'getaddrinfo',
hostname: 'localhost' } undefined undefined
bash-4.3$ echo "::1 localhost" >>/etc/hosts
bash-4.3$node -e "require('dns').lookup('localhost', {family: 6}, (err, address, family) => console.log(err,address,family))"
null '::1' 6I'd suggest we add this to /etc/hosts on the machines, and also to the setup instructions.
cc/ @mhdawson
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels