Configuring DNS always differs depending on the operating system you are using. On CentOS, Fedora or other Red Hat distributions you will find that the easiest way of amending this is via the ifcfg-eth0 file.
$ sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0
Then amend the following lines to whatever you want:
The above will not require a reboot.