Description of problem: I'm using dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf to get split DNS when connecting to VPN (openvpn). This works fine the first time I connect to VPN after booting the machine. using NM to connect to the VPN. root@x230:~ > ping -c1 beaker.en,ineering.redhat.com PING beaker-server.host.prod.eng.bos.redhat.com (10.19.208.8) 56(84) bytes of data. 64 bytes from beaker-server.host.prod.eng.bos.redhat.com (10.19.208.8): icmp_seq=1 ttl=53 time=258 ms However if I stop the VPN and restart the VPN it no longer resolves any DNS queries on the VPN root@x230:~ > ping -c1 http://beaker.engineering.redhat.com ping: http://beaker.engineering.redhat.com: No address associated with hostname I noticed that if I kill dnsmasq and NM automatically respawns it the DNS queries start to work (without any change to the VPN). root@x230:~ > ping -c1 beaker.engineering.redhat.com ping: beaker.engineering.redhat.com: No address associated with hostname root@x230:~ > pkill dnsmasq root@x230:~ > ping -c1 beaker.engineering.redhat.com PING beaker-server.host.prod.eng.bos.redhat.com (10.19.208.8) 56(84) bytes of data. 64 bytes from beaker-server.host.prod.eng.bos.redhat.com (10.19.208.8): icmp_seq=1 ttl=53 time=252 ms Version-Release number of selected component (if applicable): NetworkManager-1.2.4-3.fc24.x86_64 NetworkManager-openvpn-1.2.4-2.fc24.x86_64 dnsmasq-2.76-1.fc24.x86_64 How reproducible: always Steps to Reproduce: 1. start VPN 2. stop VPN 3. start VPN 4. ping host on VPN Actual results: dns resolution fails Expected results: dns resolution succeeds Additional info: root@x230:~ > cat /etc/resolv.conf # Generated by NetworkManager search redhat.com nameserver 127.0.0.1
This is a known problem is dnsmasq and the fix is already upstream. See bug 1373485 for more details. *** This bug has been marked as a duplicate of bug 1373485 ***