Automatically assign DNS
Open System Preferences and click the Network icon.



Select your network in the list on the left, and make sure that it says "Using DHCP" in the drop-down list after "Configure IPv4:"



If you've made any changes, click the "Apply" button and then the "Show All" button to make sure everything is saved.