Added NetworkManager hook to use systemd's DNS service. #1
This commit is contained in:
parent
f94c1eec25
commit
121a239439
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
interface=$1
|
||||
action=$2
|
||||
|
||||
if [ "$interface" = "eth0" -a "$action" = "up" ]
|
||||
then
|
||||
rm -f /etc/resolv.conf
|
||||
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
|
||||
fi
|
Loading…
Reference in New Issue