The Wire · Showcase
Node DNS Reverse Lookups Fixed, REPL Gets Syntax Highlighting
By RepoJournal · Filed · About Node.js
Node core shipped a DNS fix that stops reverse lookups from consulting /etc/hosts, breaking alignment with documented behavior that caught developers mid-production.
The dns.reverse() method was honoring c-ares lookup order and returning entries from /etc/hosts despite documentation stating it performs pure DNS queries [2]. This fix configures c-ares resolver channels to use only DNS/PTR lookups, aligning reverse() with the behavior of dns.resolve*() [1]. In parallel, Node's REPL now includes basic syntax highlighting [3], a quality-of-life improvement for interactive debugging. Documentation also tightened: assert.deepStrictEqual() docs now explicitly note that object constructors are compared as part of deep strict equality [4], closing a gap between docs and actual behavior. Across the ecosystem, changelog-maker landed v4.4.42 and nodejs-dist-indexer reached v1.8.20 with routine dependency patches [5] [6].
One email a day. Unsubscribe in one click.
Keep up with Node.js in about 3 minutes a day: what actually shipped — the commits, pull requests, releases, and security advisories that matter.
One email a day. Unsubscribe in one click. Read a past issue →
Action items
References
- [1] dns: do not consult hosts file in reverse lookups ↗ nodejs/node
- [2] dns: do not consult hosts file in reverse lookups nodejs/node
- [3] repl: add basic syntax highlighting nodejs/node
- [4] doc: mention constructor check in deepStrictEqual ↗ nodejs/node
- [5] v4.4.42 ↗ nodejs/changelog-maker
- [6] v1.8.20 ↗ nodejs/nodejs-dist-indexer