If safari (and other apps like adium) don’t work, but chrome still works, try:
$ sudo launchctl stop com.apple.networkd
$ sudo launchctl start com.apple.networkd
If safari (and other apps like adium) don’t work, but chrome still works, try:
$ sudo launchctl stop com.apple.networkd
$ sudo launchctl start com.apple.networkd