News for hackers. Stuff that matters.
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by stock_toaster on Monday June 04, 2012 @06:41PM (#4066345)
That would not be a welcome change for me.

I use some hosts file overrides for two reasons:

1) testing at $dayjob

2) to block some spammy things, and if their in-browser resolver did not take those into consideration

If either of those were impacted, it would be bye-bye chrome.

Re:Chrome Networking: DNS Prefetch & TCP Preconnect by igrigorik on Monday June 04, 2012 @07:12PM (#4066476)
Just tested it in Canary builds and the async DNS resolver does parse and respect /etc/hosts.
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by stock_toaster on Monday June 04, 2012 @07:19PM (#4066505)
Great news! Thanks for testing igrigorik.
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by afimrishi on Monday June 04, 2012 @07:16PM (#4066497)
The Chromium experimental DNS resolver should respect that. If it does not, it's a bug and please file it at new.crbug.com.
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by CUR10US on Monday June 04, 2012 @06:59PM (#4066422)
"after much deliberation".

Why did the team deliberate so much?

I will let the readers ponder this.

There are already some very good stub resolvers and resolver libraries available to users (e.g. dnsqr and the djbdns library). I have a hard time believing Google is going to do better than djb.

Of course I have no problem with them or anyone else writing another one. Have at it. The more attention brought to name resolution the better -- because it can be so easily abused for questionable purposes, it is something that deserves user oversight.

But why does Google need to place theirs _inside the browser_? That is a very curious design decision.

Re:Chrome Networking: DNS Prefetch & TCP Preconnect by afimrishi on Monday June 04, 2012 @07:22PM (#4066520)
The original comment in this thread seems to have been deleted, so I can't tell what was said. The primary reasons for implementing our own DNS resolver include: * Being able to fully instrument it. As the article mentions, we have internal debugging pages like about:net-internals, which rely on this instrumentation. * Being able to run experiments. Google Chrome releases often run A/B experiments to play around with different configurations to see which has better performance and what not. This is harder to do with a 3rd party library.

As Ilya notes, a fuller discussion can be found at the G+ post's comments section.

Note: I'm a Chromium developer on our network stack. I'm also the author of the G+ post linked to in the article.

Re:Chrome Networking: DNS Prefetch & TCP Preconnect by CUR10US on Monday June 04, 2012 @07:49PM (#4066603)
I remember reading that thread some time ago. Are you the engineer who was rude to the journalist?
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by afimrishi on Monday June 04, 2012 @09:17PM (#4066850)
I think you have someone else in mind. Perhaps one of the commenters on her article?
Re:Chrome Networking: DNS Prefetch & TCP Preconnect by igrigorik on Monday June 04, 2012 @07:14PM (#4066485)
I linked to Will's post in the article, definitely worth a read: https://plus.google.com/103382935642834907366/posts/FKot8mgh...

Check the comments, there are some very good discussions in there with Daniel Stenberg about c-ares and other resolvers.

Re:Chrome Networking: DNS Prefetch & TCP Preconnect by stock_toaster on Monday June 04, 2012 @07:17PM (#4066499)
I hypothesize their reason would be because they want to turn chrome more into a full os (chrome os/chromebook), and bring more things in house. I also recall something about some resolvers having through when ipv6 is enabled but not actually functional. Possibly they are trying to make such things a bit more seamless.

I, currently at least, would still prefer that the os handle name resolution.