To find the DNS server in Windows, open the command prompt as an administrator, type the command, ipconfig/displaydns, and press the enter key.