Almost always: your operating system or browser has its own DNS cache separate from the resolver you told dig to query. dig queries the resolver directly, bypassing local caches. To match: flush your OS DNS cache (macOS: sudo dscacheutil -flushcache, Windows: ipconfig /flushdns, Linux: systemd-resolve —flush-caches or restart nscd), then check again in the browser.
All questions