Skip to content

Instantly share code, notes, and snippets.

@clbx
Created July 2, 2021 23:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clbx/43dd491e8d5a40201d9df7085ccfd9a0 to your computer and use it in GitHub Desktop.
Save clbx/43dd491e8d5a40201d9df7085ccfd9a0 to your computer and use it in GitHub Desktop.
sudo apt install resolvconf
/etc/systemd/resolved.conf
DNS==< ip of DNS Server >
sudo systemd-resolve --interface eth0 --set-dns 192.168.1.60 --set-domain <domain>
sudo systemd-resolve --flush-caches
sudo systemctl restart systemd-resolved
sudo systemd-resolve --status
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment