I had a DNS bug that was only showing up about 1 in every 4 times someone visited the client’s website afresh. What was the bug, how did I deal with it, and why did "we already checked DNS" almost send us down the wrong path?

The Background

The client’s story is one every WordPress developer will recognize. The client had a hosting account with a company and had registered a domain name with them. They had also built a website using an AI builder on this hosting account and pointed the domain name to it.

After not seeing a great ROI with their website, they contracted me to build a new one, and the first order of business was to point their DNS to the new hosting account they would now be using to host this new website. Easy and routine stuff.

The Bug