How to change DNS ip address in RHEL

Originally published at:

I am a new RHEL 5.x/6.x/7.x sysadmin. How do I change DNS IP address in RHEL using the CLI? What is the procedure to change the DNS IP from to in Red Hat Enterprise Linux desktop or server?

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki