Created
January 29, 2021 00:17
-
-
Save wintersolutions/f871fda3fb57f7f62f1bf77487970c6b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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