Skip to content

IPv6 localhost isn't defined in /etc/hosts on AIX #721

@gibfahn

Description

@gibfahn

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' 6

I'd suggest we add this to /etc/hosts on the machines, and also to the setup instructions.

cc/ @mhdawson

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions