Problems with ubuntu network connection

view full story

http://askubuntu.com – My Ubuntu 12.04 LTS lost Internet connectionor it just acts like it have lost Internet connection.. When I go to terminal in says: user@(none) when I preform sudo comand it says sudo: unable to resolve host (none) and preforms the command. If I try firefox nothing happens but when I try pinging it delivers everything (only if it have been pointed to a IP address). (HowTos)