mac os 中如何使用命令查看dns

调皮的芋头 2016-06-03 02:21:46
大家好!
请问 mac os中使用命令如何查看DNS?
Windows中查看DNS命令:ipconfig /all |findstr "DNS"
...全文
8161 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
foxamyleo 2016-07-04
  • 打赏
  • 举报
回复
用cat /etc/resolv.con 来看。unix 一样的命令。
➜  ~ 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.
typeof_ 2016-07-03
  • 打赏
  • 举报
回复
nslookup 可以
如下:
renwotao2009 2016-06-04
  • 打赏
  • 举报
回复
nslookup

2,161

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 UNIX文化
社区管理员
  • UNIX文化社区
  • 文天大人
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧