RayDon 2010-12-23
需求:项目需要主机能ping通外网域名,但是公司给的SUSE主机默认是ping不通的。放狗搜了一下,资料很多,很快搞定,记录如下
#cat/etc/resolv.conf
domainsite
#vi/etc/resolv.conf
domainsite
nameserver202.102.46.151
#pingwww.baidu.com
PINGwww.a.shifen.com(61.135.169.105)56(84)bytesofdata.
64bytesfrom61.135.169.105:icmp_seq=1ttl=52time=1.61ms
64bytesfrom61.135.169.105:icmp_seq=2ttl=52time=1.68ms