0
点赞
收藏
分享

微信扫一扫

ip dns dig gateway

yum install -y bind-utils

dig @114.114.114.114 www.qq.com +trace 可以显示详细的DNS解析过程

nslookup

host 

1.如果网卡配置文件里配置了dns 会优先于/etc/resolv.conf 若重启网卡会覆盖/etc/resolv.conf

2.如果网卡配置文件里没有配置dns,则/etc/resolv.conf会生效,若有多块网上(dhcp方式获取ip),则可能去冲掉/etc/resole.conf

route -n  查看网关 ip route

route del default gw 10.6.1.1

route add default gw 10.6.1.1

 


举报

相关推荐

0 条评论