24 April 2009

How to Add DNS in Linux using shell script

If you want to add DNS server in linux. The fastest way is using shell script.
Here is fastest way to add DNS server in Linux

edit /etc/resolve.conf with your favorite editor (gedit,nano,vim, vi...etc)

for each name server add
nameserver <ip>