After making any changes simply update and apply your settings with the following command
sudo resolvconf -u