The only consistent solution for changing your DNS server is to change it in each individual network interface. This means for Ethernet and for each wireless network you use.
I'm looking for a way to set DNS servers globally. No matter what interface I'm using. I found several solutions but most of them are commented on that they only work on certain conditions.
Because I don't really know a way to test if the DNS settings were succesfully changed, I'm looking for a way that definitely works on Ubuntu 14.04 LTS.