Not able to connect internet from eth0

I am new to Linux, a few days ago my internet began refusing to connect
IP link show gave me the following about eth0
eth0: <BROADCAST ,MULTICAST ,UP ,LOWER_UP> mtu 1500 qdisc pfifo_fast state up mode default group default qlen 1000 link/ether ce:28:fe:23:15:11 brd ff:ff:ff:ff:ff:ff: permaddr f0:79:59:da:70:0b
My internet was fine just a few days ago, now it is not connecting, when I press the networking tab it shows 0b/s for both up and down, then it goes up a bit
Edit: solved it by changing the adress in the resolv file

How did you do it i have same problem could you help me man please