mac 命令行查看DNS

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

mac 命令行查看DNS_第1张图片

查看文件/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.

mac 命令行查看DNS_第2张图片
参考:
mac os 中如何使用命令查看dns

你可能感兴趣的:(mac,dns,mac)