tailscale-qpkg icon indicating copy to clipboard operation
tailscale-qpkg copied to clipboard

Won't restore dns settings when uninstall

Open FlintyLemming opened this issue 2 years ago • 2 comments

photo_2022-04-26 15 17 49

resolv.conf is still remaining in the system and it will keep override DNS config set via QTS Web network settings

FlintyLemming avatar Apr 26 '22 07:04 FlintyLemming

Sorry for the late reply. If I recall, then QTS has separate resolv.conf files for every interface (/etc/resolv.conf@eth0 or similar). Do you have the per-interface configurations?

ivokub avatar Aug 21 '22 23:08 ivokub

Same behavior after running Tailscale.sh stop Adding this cat command in the Tailscale.sh stop script solves the issue (there may be a more elegant way to do it though):

  stop)
    if [ -e /tmp/tailscale/tailscaled.pid ]; then
      PID=$(cat /tmp/tailscale/tailscaled.pid)
      kill -9 ${PID} || true
      rm -f /tmp/tailscale/tailscaled.pid
      cat /etc/resolv.pre-tailscale-backup.conf | tee /etc/resolv.conf

jdag43 avatar Nov 20 '23 06:11 jdag43