I installed dnsmaq, which is a dnscache and then I configured dnsmasq with my dns servers (in fact I use OpenDNS) like this
# Add other name servers here, with domain specs if they are for
# non-public domains.
#server=/localnet/192.168.0.1
server=208.67.222.222
server=208.67.220.220
Then I'm able to do DNS lookups even though NetworkManager empties my /etc/resolv.conf.
I found a workaround - ugly, but it works.
I installed dnsmaq, which is a dnscache and then I configured dnsmasq with my dns servers (in fact I use OpenDNS) like this
# Add other name servers here, with domain specs if they are for /localnet/ 192.168. 0.1 208.67. 222.222 208.67. 220.220
# non-public domains.
#server=
server=
server=
Then I'm able to do DNS lookups even though NetworkManager empties my /etc/resolv.conf.