Hi There
I'm using Ubuntu 16.04 Desktop on my laptop and was wondering if there was a way I could create bash scripts that would change my DNS settings on eth0 whenever I needed to.
This is mainly for the purposes of jumping between two different DNS servers depending on my networking scenario at any one time.
I know I could simply modify the DNS via Network Manager but I think 2 scripts (1 for 1 DNS, 1 for the other DNS) would be better as it would be able to flush the DNS cache too when changing over as well as make all this happen at the click of a button.
I've been searching around but so far I see no forum discussion that gives a clear working answer to this for me.
If someone could help me with this I'd really appreciate it!
Bookmarks