PowerCLI script to validate DNS service is being restarted.
search cancel

PowerCLI script to validate DNS service is being restarted.

book

Article ID: 395996

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

PowerCLI script to clear the DNS cache on several ESXi hosts in a cluster. 

Environment

8.0

Cause

Limitations of API and ESXi OS tools

Resolution

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.