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

 

posted @ 2016-11-18 11:23  howhy  阅读(106)  评论(0编辑  收藏  举报