开发者

How to retrieve the CNAME on Windows?

开发者 https://www.devze.com 2022-12-16 08:05 出处:网络
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

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 comma开发者_如何学运维nd or script uses the Windows Registry Editor (regedit).


The hostname program/command should give you the DNS name of the local machine, whereas the shell command echo %COMPUTERNAME% should show you the NetBIOS name (which might be different).

0

精彩评论

暂无评论...
验证码 换一张
取 消