Created
July 19, 2017 09:16
-
-
Save tbaumann/d484efb2e27613654a52dbe11cfe53b8 to your computer and use it in GitHub Desktop.
SetLinkDNS via busctl
This file contains 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 | |
IF_INDEX=`cat /sys/class/net/ppp0/ifindex` | |
busctl call org.freedesktop.resolve1 /org/freedesktop/resolve1 org.freedesktop.resolve1.Manager SetLinkDNS 'ia(iay)' $IF_INDEX 2 2 4 10 10 10 10 2 4 10 10 10 11 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment