Clear cache for domain?

Please tell me. I have a domain whose DNS was changed 5 hours ago, but the server still sees the wrong ip using the nslookup command. Is there any way to clear the DNS cache? This command does not help sudo systemctl restart systemd-resolved.service

Try this:

systemd-resolve --flush-caches

Unfortunately the ip remains old.

Are you sure the ip has been changed in that remote dns? Are you sure you are using systemd-resolved service?

If you say the domain we can test it from our side.

Send to PM

1 Like

Just for the records.

@SVADO had 4 nameserver in /etc/resolv.conf file and the first two had already cached the old ip for the domain, the other two doesn’t so they were serving the new ip. The op changed the order of nameservers in resolv.conf file and it was solved… at least till the other nameservers remove the old ip from their cache.