tailscale / tailscale-qpkg

Package Tailscale client in QPKG
MIT License
459 stars 38 forks source link

Won't restore dns settings when uninstall #37

Open FlintyLemming opened 2 years ago

FlintyLemming commented 2 years ago

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

ivokub commented 2 years ago

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?

jdag43 commented 1 year ago

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