Skip to content

Comment on DNS Resolution: A Primer

Comments

On Linux specifically, the browser will call getaddrinfo()[2] to spark up the system’s internal resolver.

Not Chrome, it has its own DNS resolver.

Can you turn this off?

Does Chrome respect /etc/resolv.conf or /etc/hosts?

The user cannot choose their own DNS servers?

Chrome's resolver is a stub resolver - it is just a replacement for getaddrinfo(). It does what getaddrinfo() does but asynchronously.

That means the parent's comment is irrelevant in the context of what the article is discussing.

As for getaddrinfo, Links, a text-based browser which preceded Chrome by many years, also has one. Links allows the user to turn asynchronous DNS resolution off. Does Chrome?

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.