I have changed the IP address in a DNS record (on Google Cloud DNS), associated to a subdomain test.example.com
From my Google Cloud VM:
- if I
ping test.example.com, I get the old IP address - if I
systemd-resolve test.example.com, I get the new IP address
I have tried to flush the DNS cache using:
sudo systemd-resolve --flush-caches
but ping is still getting the old IP address
What am I doing wrong?