How to change DNS ip address in RHEL

Originally published at: https://www.cyberciti.biz/faq/change-dns-ip-address-rhel-redhat-linux/

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 8.8.8.8 to 192.168.2.254 in Red Hat Enterprise Linux desktop or server?


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