Edit list of Linux nameservers

Edit the file /etc/resolv.conf and add or remove entries of the form:

nameserver 192.168.1.1

Use service network restart to apply the edits.