Ubuntu Server Change DNS Name Servers
Sometimes, the default DNS is not stable enough. To change the name servers to 126.96.36.199, the official solution is to modify /etc/network/interfaces. But NO, I will never modify this file again, since I have made servers offline many times because of modifying this file incorrectly.
Clint Eastwood gives a solution by installing dnsmasq.