How to reset DNS cache

Proxmox VE shouldn't do any system-level DNS caching, unless you've manually configured some sort of caching local resolver, like systemd-resolved or dnsmasq. What is the content of your /etc/resolv.conf?
 
The content is
Code:
search office.xxx.com
nameserver 10.1.11.254
nameserver 10.1.20.18

I have not configured any caching. As expected, the new IP addresses became visible after some time - therefore I was sure, that there must be some caching somewhere (e.g. nscd)
 
  • Like
Reactions: itsprenkle
The same happens to me, both in the nodes and inside the LXC. I two following commands failed:
Code:
# resolvectl flush-caches
Failed to flush caches: Unit dbus-org.freedesktop.resolve1.service not found.
# systemd-resolve --flush-caches
Failed to flush caches: Unit dbus-org.freedesktop.resolve1.service not found.

So, for reference, the only thing I could think of was, according to man systemd-resolved, to send a `SIGUSR2` signal to the daemon:

Code:
killall -USR2 systemd-resolved