I had an issue this week where the webhost altered my DNS settings, but the website, whether I typed in
www.example.com would always resolve to
www.www.example.com and I couldn't figure out why.
I resolved the issue, it did turn out to be a DNS record error.
But how do I troubleshoot this in the future?
I can use dig to resolve names to other names and IP addresses, but then there's a webserver that might be redirecting, rewriting the URL, etc. Working just within the browser, I couldn't tell if a particular direction was due to DNS or the webserver.
Is there a method that would allow one to trace the full series of transactions that take place between entering a URL and finally getting a web page from a site, capturing all the DNS queries and results, and all the webserver redirects?