This article exaplains how it is done for Ubuntu 12.04
Basically, just add your list of DNS name servers for eth0 in the /etc/network/interfaces file:
dns-nameservers X.X.X.X Y.Y.Y.Y Z.Z.Z.Z
and don’t forget to
sudo ifdown eth0 && sudo ifup eth0
This article exaplains how it is done for Ubuntu 12.04
Basically, just add your list of DNS name servers for eth0 in the /etc/network/interfaces file:
dns-nameservers X.X.X.X Y.Y.Y.Y Z.Z.Z.Z
and don’t forget to
sudo ifdown eth0 && sudo ifup eth0