If a DNS query fails, the browser typically displays an error message indicating that the website cannot be reached. This failure can occur due to various reasons like network issues, incorrect DNS settings, or the website being down.