I am new to Linux/unix and would like to know how to setup my (ve) server to host my website.The (ve) server will have centos 5.5 installed with a LAMP stack.I am specifically looking for a way to setup the domain/fqdn to point my registrar (http://co.za/) to my server IP. For example: www.mydomain.co.za takes me to my website.What do I need to install/configure to get the above up and running?
centos primary/secondary nameserver setup
centos;domain
You have a few options for setting up DNS. I've listed them in order starting from the easiest and most common solution:Configure DNS through your Registrar:Unless you are trying to install, configure, and maintain your own DNS servers, this is not a configuration that you make on the server. Most likely, you want to create an A (ipv4) record on your registrars administrative panel that tells their Nameservers the IP of your server. Registrars almost universally provide this service.Configure DNS through your hosting provider:As has been mentioned hosts such as Linode provide DNS services. With these services you have to tell your registrar the nameservers for your host such as (ns1.linode.com). Subsequently, you will have to configure your domain through your hosts interface (web, api, etc.). (Im not sure that MediaTemple provides this service.)Host your own DNS servers (not recommended):If you are truly trying to host your own DNS servers, you will have to tell your registrar about your authoritative nameservers for your domain and choose a DNS server such as BIND or MaraDNS to install on those hosts. This requires much more work (and some glue record magic as how can ns1.example.com resolve if it doesn't know who to ask about example.com). NOTE: Your question is vague enough to suggest you don't know which option you need. So, choose one and I will be happy to elaborate.