How to change my DNS server provider permanently?

The issue is you are getting the DNS server from the router and overriding what you set. To fix this, you must edit /etc/dhclient.conf.

Add this line to make sure that it does not override the default DNS servers:

supersede domain-name-servers 8.8.8.8, 8.8.4.4;

Alternatively, you can instruct the DHCP client to not request a DNS server address.

More information can be found with the man dhclient.conf command.


Below Solution Worked in my box (Fedora release 25)

/etc/sysconfig/network-scripts/ifcfg-eno1

Added below entries to above file at the bottom.

PEERDNS=NO
DNS1=8.8.8.8
DNS2=8.8.4.4

And restarted network (service network restart) to ensure that the entries are not modified in /et/resolv.conf