命令行查看windows和linux的dns地址

ipconfig /all
可以看到dns地址还有许多其他的信息

In most other versions of Windows, click on Start, then All Programs,
then Accessories, and finally on Command prompt. Type “ipconfig /all”
followed by Enter. You’ll get a lot of information.

To find out your DNS Server IP address in linux, use the following cat command or less command.

$ cat /etc/resolv.conf
OR
$ less /etc/resolv.conf
less命令通过q退出

你可能感兴趣的:(命令行查看windows和linux的dns地址)