PowerCLI script to clear the DNS cache on several ESXi hosts in a cluster.
8.0
Limitations of API and ESXi OS tools
DNS is managed at the operating system.ESXi Shell offers only a minimal set of built-in OS utilities. The vSphere API exposes vCenter services and actions, but does not handle OS-level functions. It is possible to orchestrate tasks with PowerCLI and PowerShell together. However, to run PowerShell over SSH without prompting for a password, SSH key-based authentication is be required.