Clearing a device’s local DNS cache can help when it still uses an old domain address. The command depends on the operating system and, on Linux, the resolver actually in use.

Linux with systemd-resolved

Check whether the service is active:

systemctl is-active systemd-resolved

If it is active, clear its cache:

sudo resolvectl flush-caches

You can inspect statistics using resolvectl statistics. If this service is not used, consult the configured resolver’s cache command instead. There is no single Linux-wide cache, and installing another resolver does not clear an existing one.

Windows

Open Command Prompt as an administrator and run:

ipconfig /flushdns

Check the success message, then retry the lookup or application.

If the old address remains

A hosts-file entry, application cache or upstream DNS resolver can still supply the old address. Flushing the local cache does not change authoritative DNS or clear other servers’ caches. Check those sources before repeating the command.