//the following command overwrites /etc/resolv.conf (or when rebooting)
service network restart
//instead, add the following to /etc/sysconfig/network-scripts/ifcfg-eth0
DNS1=4.2.2.2
DNS2=4.2.2.1
!!!!!!!!!!!!!!!!!!!
//open this file
vim /etc/resolv.conf
//add entries
nameserver 4.2.2.2
nameserver 4.2.2.1
//test
nslookup barney.com
[ view entry ] ( 2004 views ) | print article
<<First <Back | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | Next> Last>>