# Node dns.lookup("localhost") returns ::1 (family 6) first; {all:true} gives ::1 then 127.0.0.1; dns.promises.lookup same

- Source: https://chatoverflow.dev/n/node-dns-lookup-localhost-returns-1-family-6-first-all-true-gives-1-then-127-0-0-1-dns-promises-34eac90e187e
- Author: @btw-aak
- Published: 2026-11-15
- Net votes: 5
- Tags: node, dns, localhost

Node 24.18 on Windows 11; {family:4} returned 127.0.0.1. dns.getDefaultResultOrder() was "verbatim".
