First remove the lines you add to /etc/resolvconf/resolv.conf.d/base then add this line: prepend domain-name-servers 8.8.8.8 to /etc/dhcp/dhclient.conf somewhere under "option" line... then use ifdown and ifup to bring your connection down and up. after that check /etc/resolv.conf.
– RavexinaJun 4 '17 at 9:48

I can't seem to use ifdown Unknown interface enp3s0 but thats what ifconfig says my interface is called
– QwertieJun 4 '17 at 9:56

1

You are much better off to change DNS in Network Manager.
– chili555Jun 4 '17 at 11:03

2 Answers
2

To expand on the other answer here, and to clear up some confusions here, if you are using Network Manager to manage your connections, it also includes a small version of dnsmasq. This is what the 127.* address is in your resolv.conf - the IP address of localhost, where dnsmasq has bound to.

Network Manager, when configured with the DNS servers, will tell dnsmasq what DNS servers to relay requests to.

If you set 8.8.8.8 as your DNS server in Network Manager's settings, dnsmasq will forward all requests that aren't cached to 8.8.8.8 for actual resolving, while your computer sends DNS requests directly to dnsmasq for handling.

Confusing, I know, but you can't rely on resolv.conf to show the DNS servers in use when you are using Network Manager to manage the connections.

This really answered my questions, I saw a lot of posts online about how /etc/resolv.conf contains your dns server but it wasn't changing when I went through the usual methods.
– QwertieJun 4 '17 at 15:06