{
  "id": "node-dns-table",
  "kind": "table",
  "slug": "node-dns",
  "iil_id": null,
  "note_url": "https://iinventedlight.com/library/notes/node-dns/",
  "title": "Node.js dns - lookup vs resolve, promises API and custom resolvers",
  "columns": [
    "name",
    "source",
    "detail"
  ],
  "rows": [
    {
      "name": "Uses",
      "source": "Node.js API docs",
      "detail": "operating system facilities (getaddrinfo) an actual DNS server"
    },
    {
      "name": "Uses /etc/hosts configuration",
      "source": "Node.js API docs",
      "detail": "uses it does not use it"
    },
    {
      "name": "Network",
      "source": "Node.js API docs",
      "detail": "may not need any network communication always perform a DNS query on the network"
    },
    {
      "name": "Threadpool",
      "source": "Node.js API docs",
      "detail": "runs on libuv's threadpool does not use libuv's threadpool"
    },
    {
      "name": "new Resolver()",
      "source": "Node.js API docs",
      "detail": "creates an independent resolver for DNS requests. Setting the servers used for one resolver does not affect other resolvers."
    }
  ],
  "related_slugs": [
    "node-http-and-url",
    "node-events",
    "docker-bridge-networks"
  ],
  "license": "CC-BY-4.0",
  "source_license": "MIT (Node.js API docs); MIT (nodejs/node (GitHub)); prose restates cited source lines in own words",
  "as_of": "2026-11-18",
  "status": "fill-draft-20261118",
  "note": "Restated from the note's GREEN sources; check those sources before relying on a value."
}