Feature request: "Flush DNS cache after connecting or disconnecting" even without setting nameserver

351 views
Skip to first unread message

kbom...@gmail.com

unread,
Jan 24, 2019, 7:40:21 PM1/24/19
to tunnelblick-discuss
Hi Tunnelblick team,

Thanks for a great product.  I'm hoping you'd consider this quick feature request:

The "Flush DNS cache after connecting or disconnecting" checkbox option on the "Connecting & Disconnecting" tab of the "Advanced" settings window is disabled if the setting to "Set DNS/WINS" is set to "Do not set nameserver".


For users at my company, they configure their nameserver manually using `/etc/resolver`, but they still need to flush the DNS cache upon connection to/from the VPN.  It seems like it should be trivial to allow this option to be used even if "Set DNS/WINS" is set to "Do not set nameserver".

Would you consider this as a quick fix?

Best,
Kevin Bombino

Tunnelblick developer

unread,
Jan 24, 2019, 7:51:11 PM1/24/19
to tunnelblick-discuss
Thanks for your suggestion.

However, it isn't trivial because the DNS cache flushing is done in the up and down scripts that set the nameserver. If "Do not set nameserver" is selected Tunnelblick does not run those scripts.

You could add your own up/down scripts to each configuration and have those scripts flush the DNS cache. See Using Scripts.
Reply all
Reply to author
Forward
0 new messages