Friday, November 28, 2008

How to add DNS in Linux?

Create a new resolv file in /etc/

Type: vi /etc/resolv.conf

Configure the /etc/resolv.conf file to point to a valid name server. For example: If the name server is in 192.168.15.1, add the following line

nameserver 192.168.15.1

Save the file and restart the network by
typing: /sbin/service network restart

Test it by ping www.google.com

No comments: