Back on my own computer now.
You can make changes without doing edits in resolvconf. I give you some code that achieves what you want, explanation further down.
cat /etc/resolv.conf # will show the current content including one dns x.x.x.x sudo su cp /etc/network/interfaces /etc/network/interfaces-orig echo 'dns-nameservers 184.108.40.206 220.127.116.11' >> /etc/network/interfaces ifdown -a ifup -a exit cat /etc/resolv.conf # will show the new content including the new nameservers
cat prints the file content to the screen
make yourself temporarily root
save a copy of the interface file
write the dns-nameserver ip addresses to the interface file
bring networkservice down
activate networkservice again
leave the root session
compare the two resolv.conf files
INFO: IP 18.104.22.168 is the primary google dns-server and 22.214.171.124 an alternative. You can change those for your preferred dns IP addresses.
If you really don't want to deactivate the network you can run resolvconf -u instead of ifdown/ifup to regenerate resolv.conf. But I'm not sure this works immediately for your connections, might need a reboot.
Hope this works on your machine.
CharlesGo to the full post