Say you want to use DNS servers 188.8.131.52 and 184.108.40.206.
In /etc/resolve.conf, have the following line:
nameserver 220.127.116.11 nameserver 18.104.22.168
and make sure there are no
dns-nameservers lines in /etc/network/interfaces.
In /etc/dhcp/dhclient.conf, have the following line:
supersede domain-name-servers 22.214.171.124, 126.96.36.199;
Restart the networking service:
$ sudo /etc/init.d/networking restart
Check if the DNS server is used:
$ dig somehost.com ... ;; SERVER: (should see the DNS server here) ...