Skip to content

Instantly share code, notes, and snippets.

@wintersolutions
Created January 29, 2021 00:17
Show Gist options
  • Save wintersolutions/f871fda3fb57f7f62f1bf77487970c6b to your computer and use it in GitHub Desktop.
Save wintersolutions/f871fda3fb57f7f62f1bf77487970c6b to your computer and use it in GitHub Desktop.
#!/bin/sh
LXDINTERFACE=lxdbr0
LXDDOMAIN=lxd
LXDDNSIP=`ip addr show lxdbr0 | grep -Po 'inet \K[\d.]+'`
/usr/bin/systemd-resolve --interface ${LXDINTERFACE} \
--set-dns ${LXDDNSIP} \
--set-domain ${LXDDOMAIN}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment