linux-cli-community icon indicating copy to clipboard operation
linux-cli-community copied to clipboard

Lock resolv.conf for write

Open akurets opened this issue 3 years ago • 4 comments

Is your feature request related to a problem? Please describe. Not sure if its a problem, but time to time i check that smth rewrite resolv.conf file, maybe dhcp, so it leads to DNS leaking.

Describe the solution you'd like It will be good option to lock resolv.conf after protonvpn-cli rewrite it

akurets avatar Nov 04 '20 20:11 akurets

If you have dns management enabled then dns values will be replaced by the DNS value provided by ProtonVPN servers.

calexandru2018 avatar Nov 04 '20 20:11 calexandru2018

yep, its enabled. maybe i should describe my situation step by step.

  1. connect to server via protonvpn
  2. at this step there are dns provided by proton in resolve.conf
  3. at some moment smth change dns, i cant catch this moment.
  4. and i.e. dnsleaks test shiw me that i use provider dns

akurets avatar Nov 05 '20 09:11 akurets

Oh alright gotcha. There unfortunately no way to "block" the dns changes from protonvpn side. Normally the DNS shouldn't change like that, unless you have another vpn enabled or a script that makes those changes actively (or restart your network).

calexandru2018 avatar Nov 05 '20 10:11 calexandru2018

got it. i will try to do some research. now, i just lock it with chattr manually

akurets avatar Nov 08 '20 00:11 akurets