WireGuard DNS leak

  • Hello all,

    I am just wondering has anyone else noticed that when connman daemon brings up the wireguard interface it resets the /run/connman/resolv.conf file to the original values from the router?

    I edit /run/connman/resolv.conf during startup to remove my ISP's DNS servers and replace it with 1.1.1.1. I was wondering is there a way to clear the connman resolver cache that is returning the nameserver values?

  • ConnMan owns that file so it will overwrite any changes you make. The solution is setting/changing the DNS servers for a 'service' (connman speak for a connection) through connmanctl. I can't quote the syntax needed off the top of my head but there are man pages and Google for that kind of thing.