I'm using Xubuntu 18.04. AFAIK, DNS could be changed with
sudo systemd-resolve -i wlp3s0 --set-dns="xxx-yyy-aaa-bbb".
Now, how can I revert it back to the default state? Before setting it, my DNS was set to
192.168.1.1 (or router).
I want to make a script out of these commands so preferably no GUI. Also I'm looking for the most generic and "standardized" way so no CLI front-ends for GUI apps (like nmcli) or the like.
Also it seems, disconnecting from router and reconnecting, sets it to the default state...but I think there should be a better way....