For a QoS experiment, I wanted to connect two VMs to Open vSwitch. I created two tap interfaces and attached the VMs to them. I added the two tap interfaces to Open vSwitch. Finally, I added the ethernet port of my Ubuntu host machine to the switch. This, as expected, made my host machine lose Internet connectivity. To restore the connectivity, I removed ethernet port ip address and gave it to the bridge port instead. Although the Internet connectivity got restored, DNS stopped resolving domain names. In /etc/resolv.conf, I saw
"nameserver 127.0.1.1
search domain.name"
On doing some basic search, I found out that these lines are added by NetworkManager to use local forwarding nameserver (dnsmasq).
I am not sure why the name resolution is not working now and how I can fix it (other than by disabling dsnmasq and adding a fixed nameserver entry in resolv.conf). I believe that the name resolution requests are not being relayed to my service provider's nameserver.
I would really appreciate some help on this. Thanks in advance!
P.S. Interestingly enough, name resolution is working fine in the VMs. Their resolv.conf are configured with the DNS nameserver IP of my service provider.