Internet Connection Issue

Hi – it appears that on Raspbian – Kodi does not recognize the internet connection. After some searching I found that I should change the /etc/resolv.conf name server to 8.8.8.8 which seems to resolve the issue but it is not pervasive. Is there some change I can make that will obviate the need to make this change every time I want Kodi to hit the internet?

Thanks,
Fred