mac 命令行查看DNS
使用命令nslookup
bin nslookup store.chanjet.com
Server: 172.18.24.45
Address: 172.18.24.45#53
Name: store.chanjet.com
Address: 172.18.20.28
- 1
- 2
- 3
- 4
- 5
- 6
查看文件/etc/resolv.conf
~ cat /etc/resolv.conf
#
# Mac OS X Notice
#
# This file is not used by the host name and address resolution
# or the DNS query routing mechanisms used by most processes on
# this Mac OS X system.
#
# This file is automatically generated.
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9