I just installed Centos6 on VMware and i use NAT, but when i use yum i get this error:

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Try to run a
service network restartto see if your virtual machine will pick up DHCP information from its bridged interface. Then check your connection’s status (The output ofifconfigwould help).Check the contents of
/etc/resolv.confto make sure you have a DNS resolver listed. Otherwise, you won’t be able to get to the internet.