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 and and 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 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?

Your Answer


By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.