Macbook pro 15", late 2013: internet stopped working
Thanks to Allan I found the answer. I had to change my dns with the following command:
networksetup -setdnsservers Wi-Fi 8.8.8.8 8.8.4.4
after that internet was back!