The dig command is an essential DNS troubleshooting tool on Linux and macOS. However, attempting to use it in a Windows Command Prompt or PowerShell will return the errors as follows:
‘dig’ is not recognized as an internal or external command, operable program or batch file.
—
dig : The term ‘dig’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
The Windows dig equivalent are the Resolve-DnsName command in PowerShell and the nslookup command in Command Prompt.
Below is a quick guide on how to use these commands to check DNS records in Windows. (more…)