Ping command works in Network utility but not in terminal
What is the error message you get when you are pinging from the terminal?

try an nslookup www.google.com and make sure that your dns is resolving correctly