Open System Preferences > Network > DNS > click + (plus sign) under DNS Servers > input 8.8.8.8 > set that as top item > click OK