Find and rename hosts with IP address for display names to their proper FQDN by cluster. Uses reverse DNS lookup to determine proper FQDN for the new display name in vCenter. Does not modify current DNS settings on the ESXi host, simply intended as a way to change IP address display names in vCenter to FQDN names.
Error checking is fairly simple, multiple DNS PTR records and other configurations could result in an unintended display name.
perl host_ip2fqdn.pl --server=172.16.254.105 --username=administrator@vlab --password=* --cluster=CLU01
Renaming host system '172.16.254.110' to 'esx-01.vlab.local'...DONE!
Renaming host system '172.16.254.111' to 'esx-02.vlab.local'...DONE!