#!/bin/sh -e
#
# dns-fix - fix systemd-resolved - tailscale integration

# i have to run this after *every boot* for some godforsaken reason.
# thanks, tailscale.

# sudo -- ln -sf -- ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo ln -sf ../run/systemd/resolve/stub-resolv.conf /etc/resolv.conf
sudo systemctl restart systemd-resolved
# sudo systemctl daemon-reload
sudo systemctl restart NetworkManager
sudo systemctl restart tailscaled
