I have Linux Mint 18.
How can I run this command after login with main user (no root user):
sudo echo "nameserver 22.214.171.124" | sudo tee /etc/resolv.conf > /dev/null
I have read so many steps to run a command after login, but they don't work for me (or for other people too).
I need to run this command, because I run it every time to fix a network error.