VPN关闭时DNS中断

I have an L2TP VPN set up on Ubuntu 18.04 (set up similar to this). Whenever I turn the VPN off through the settings after using it for a while, my DNS seems to break entirely. For example, Firefox reports "we can't connect to the server at [address]" and ping reports "Name or service not known". IP addresses work fine, suggesting that it's a DNS problem.

我的解决方法是断开网络连接并重新连接,这将恢复我的DNS访问。

有人知道问题可能在哪里吗,还有没有更好的解决方案?我希望能够更符合人体工程学地选择何时使用VPN。

评论