Login as the root, enter:
# vi /etc/resolv.conf
OR
$ sudo vi /etc/resolv.conf
Modify or enter nameserver as follows:
nameserver 202.103.227.68nameserver 202.103.225.68
Save and close the file. To test DNS configuration type any one of the following command:
# host google.com
# ping www.bing.com
# nslookup www.bing.com
Output:
[root@localhost ~]# host google.comgoogle.com has address 74.125.127.100google.com has address 74.125.45.100google.com has address 74.125.67.100
[root@localhost ~]# ping www.bing.comPING a134.g.akamai.net (61.213.189.115) 56(84) bytes of data.64 bytes from 61.213.189.115: icmp_seq=0 ttl=50 time=107 ms64 bytes from 61.213.189.115: icmp_seq=1 ttl=50 time=109 ms64 bytes from 61.213.189.115: icmp_seq=2 ttl=50 time=60.3 ms64 bytes from 61.213.189.115: icmp_seq=3 ttl=50 time=96.8 ms--- a134.g.akamai.net ping statistics ---4 packets transmitted, 4 received, 0% packet loss, time 3006msrtt min/avg/max/mdev = 60.380/93.384/109.166/19.620 ms, pipe 2
[root@localhost ~]# nslookup www.bing.comServer: 202.103.225.68Address: 202.103.225.68Non-authoritative answer:www.bing.com canonical name = search.ms.com.edgesuite.net.search.ms.com.edgesuite.net canonical name = a134.g.akamai.net.Name: a134.g.akamai.netAddress: 61.213.189.115Name: a134.g.akamai.netAddress: 61.213.189.113
Tags:
| how to change password in linux< Prev | Next >how to auto backup mysql database |
|---|


