I have been working on chrome source for a while and I am making some changes for performance test.
I am interested in adding new DNS entries to chrome cache, so that it shows up in chrome://net-internals/#dns
I have a hard time to find the right flow in the source code.
Can someone with experience please help?
I found the dns resolver code in /net/base/dnsrr_resolver.cc
This is where the dns reolution occurs, however, I am interested in manually inserting dns entries without making a resolution call.
I ended up modifying the code in net/base/host_resolve_proc.cc. This is where the system call for resolving happens. If the address list is updated with new resolution entries, the browser would update it's host cache with the new resolution.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With