Sudden problems with connecting to the internet / local network with OSX Lion without changing settings.
Mac OS X 10.7.5
|Ethernet adapter shows connection, WIFI shows connection but using safari to connect to internet or network fails.
After checking internet modem connection is made and correct ip address is shown, checking in OSX wrong IP address is shown.
-Go to \System Preferences\Network
Restart OSX with command and R pressed
After this i used the following command to reset the DNS cache using terminal