cloudflare / cloudflared

Cloudflare Tunnel client (formerly Argo Tunnel)

Home Page:https://developers.cloudflare.com/cloudflare-one/connections/connect-apps/install-and-setup/tunnel-guide

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

đŸ’¡Reset DNS on Mac when re authenticated?

undrwatr opened this issue · comments

Is it possible to have the Cloudflared client automatically issue a dns reset when reconnected? We have a 24 hour timeout for the client to ensure that terminated employees or people that we have disconnected don't stay logged on longer than they should. When a valid user reconnected they sometimes on a Mac need to issue:

sudo dscacheutil -flushcache;
sudo killall -HUP mDNSResponder

or on a pc:
ipconfig /flushdns

Is there a way to have the DNS automatically purged when the client reconnects to keep the user from needing to these steps?