I want to know if there is an existing command or script to retrieve the Canonical Name Record (CNAME) for a given computer or server. I would like to use this via CMD/Powershell I don’t mind if such command or script uses the Windows Registry Editor (regedit).
I want to know if there is an existing command or script to retrieve
Share
The
hostnameprogram/command should give you the DNS name of the local machine, whereas the shell commandecho %COMPUTERNAME%should show you the NetBIOS name (which might be different).