Score:0

DNS configured by OpenVPN keeps reseting

in flag

I'm running Ubuntu 20.04 and I have a OpenVPN connection to my work. Once I establish the OpenVPN connection everything works fine and the correct DNS is established, as shown bellow:

resolvectl status

(...)
Link 12 (tap0)
      Current Scopes: DNS                   
DefaultRoute setting: yes                   
       LLMNR setting: yes                   
MulticastDNS setting: no                    
  DNSOverTLS setting: no                    
      DNSSEC setting: no                    
    DNSSEC supported: no                    
  Current DNS Server: 9999:99:9999:9999:9::9
         DNS Servers: 99.999.999.99         
                      9999:99:9999:99:9::9
          DNS Domain: XXX.XXX.XX

(...actual DNS numbers redacted...)

After a while, my system will reset all DNS settings for the tap0 link and resolvectl status will become

Link 12 (tap0)
      Current Scopes: none
DefaultRoute setting: no  
       LLMNR setting: yes 
MulticastDNS setting: no  
  DNSOverTLS setting: no  
      DNSSEC setting: no  
    DNSSEC supported: no  

I've been fixing this by either reseting my VPN or mannualy configuring the DNS for tap0, following https://askubuntu.com/a/1248856

sudo resolvectl dns tap0 99.999.999.99
sudo resolvectl domain tap0 "~XXX.XXXXX.XX"

Any idea what could be resetting my DNS configuration?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.