Get a troubleshooting question in the interview, and you are excited because some troubleshooting techniques came to your mind immediately? Hold on! Diving into a specific solution without clarifying the issue is usually a bad practice. You should always ask questions to clarify the issue and start from the big picture. Using "binary search"(yes or no question) to clarify the issue is a common practice. "Users report they got error when visiting your website" The big picture is this kind of troubleshooting question can usually be broken down into 3 parts. client side issue network issue server side issue After getting the big picture, you can start troubleshooting. client side issues Can you reproduce it? Yes - it's obvious there is a bug. Find out what the bug is and file it. If you can not precisely find the root cause, at least summarize how to reproduce it, so the engineers who are in charge of this can better address the issue. C...
When entering www.google.com in the browser, the following process starts: Browser looks up it's cache to see if it knows the IP address(to see the DNS Cache in Chrome, go to chrome://net-internals/#dns) Computer checks local host file(usually /etc/hosts) Computer asks local DNS server(ISP DNS server) -> it's called recursive query Local DNS server checks local cache. If the IP address of this domain is not in the cache, the local DNS server starts the following iterative query procedure: local DNS server queries a global root server(there are 13 sets of root servers globally) A root server directs the local DNS server(resolver) to the IP of a top level domain(TLD) server The TLD server refers the resolver to the Google DNS server the Google DNS server knows the IP address of www.google.com Local DNS server caches the IP address in case it needs the address in the future and returns it to the computer Computer caches the IP address and visits the address