linux下好像没有专门的DNS查看命令。

用ifconfig命令也是看不到DNS的信息。(也可能是我不知道)

 

本机的DNS配置信息是在:/etc/resolv.conf

[root@localhost etc]#cat resolv.conf

nameserver xxx.xxx.xxx.xxx

//这个就是你配置的或者是DHCP分配给你的DNS服务器地址,你也可以手动的修改此地址

dig和nslookup都能查

 

网关route add default gw {IP-ADDRESS} {INTERFACE-NAME}DNS编辑/etc/resolv.confnameserver {IP-ADDRESS}nameserver {IP-ADDRESS}

相关文章:

  • 2021-10-23
  • 2021-10-11
  • 2021-04-27
  • 2022-02-14
  • 2021-10-22
  • 2022-12-23
  • 2021-12-24
  • 2021-06-06
猜你喜欢
  • 2021-11-23
  • 2022-12-23
  • 2022-02-07
  • 2022-12-23
  • 2021-04-26
  • 2021-07-20
相关资源
相似解决方案