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.