I have DNS leak when using OpenVPN. I disabled and stopped systemd-resolved and installed dnsmasq. I added line to NetworkManger.conf (dns=dnsmasq). I think problem lies in resolv.conf file, which has 3 local nameservers. If I delete them and write nameserver 127.0.1.1 and 22.214.171.124 and 126.96.36.199 it solves problem. I have no DNS leakage, but only for a minute or so. After that my resolv.conf file gets overwritten with my local servers. I checked syslog file and found out that error:
dnsmasq: failed to create listening socket for 127.0.1.1: Address already in use
Because of that error dnsmasq does not start and resolv.conf gets overwritten with previous (local) nameservers...how can I get that sorted out?