I want to host one website on apache server which is installed in my local HP machine.I want to map it to my domain name ex. www.xxx.com purchased at godaddy.com.Do i need to install dns server?
I wouldn't suggest it. Instead, just use your registrar's DNS servers. Click on the DNS Manager link in GoDaddy's control panel.