I was surprised to learn recently that web browsers also cache DNS lookups (in addition to the OS network stack doing so).
It’s usually only for a short time (up to about 70 seconds according to that article) but something to be aware of when troubleshooting.