how to disable resolvconf in ubuntu

remove the symbolic link to /etc/resolv.conf and replace it with a real file. e.g.:

rm /etc/reslov.conf
echo "nameserver 8.8.8.8" >/etc/resolv.conf

disable dnsmasq in the Network Manager configuration, and restart it:

ed /etc/NetworkManagerNetworkManager.conf <<EOM
/^dns=dnsmasq/
s/^/#/
w
q
EOM

restart network-manager