I have a web server with CentOS and Apache installed. I can access the wbeserver using the IP of the web server. Now I want to point a domain name to that web server. So I have changed the name servers at my domain registar. But at this point I am stuck. Reading up some material I see that I would also need to configure bind to reply to DNS queries. My host says "If you are not using Cpanel, you need to configure a DNS server in your environment, such as BIND9, to server authoritive records for your domains." I am using webmin as the control panel and have root access to the machine. What are the steps I need to take to configure BIND?
But you may not want to really do this. It's really not a good idea to run your own DNS server. Better to either use the free DNS servers provided by most registrars, or else a third-party DNS service.
First of all, you are technically required to provide a minimum of two, separate DNS servers. This means GEOGRAPHICALLY separate. Most setups that run a DNS server on a web host just fake this by pointing both NS records at the same server.
Secondly, either the registrar-provided or third-party DNS service is likely to be far more reliable and faster than running your own server. They typically provide a world-wide network of DNS servers, and many providers use IP-Anycast technology to automatically route DNS requests to the nearest server.
Bottom line is, you probably will get both more reliable and faster DNS service by using the free DNS servers offered by your registrar, rather than running your own on your web host.