Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
Which registrar are you using? – Alex Chamberlain Jun 12 '12 at 14:41
Question updated – neolace Jun 12 '12 at 15:09
I have no experience with co.za, but the first step is to set up the nameservers correctly for (ve). There should be an FAQ on the Mediatemple site to do this. – Alex Chamberlain Jun 12 '12 at 15:11
Thank you Alex, I have a lot to learn. Still looking for the answer. – neolace Jun 12 '12 at 15:31
up vote 3 down vote accepted

You have a few options for setting up DNS. I've listed them in order starting from the easiest and most common solution:

  1. 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.

  2. 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.)

  3. 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.

share|improve this answer

It's a very basic question. There are many howtos, particularly at wiki.centos.org.

Shortly, you need to configure named (or some other nsd) and to delegate a domain name to your server with nsd.

share|improve this answer
looks like we're getting somewhere, r u referring to this:library.linode.com/dns-guides/…;, I'll mark as answer when successfully implemented. Thank you @Evgeniy – neolace Jun 12 '12 at 15:52
People don't tend to run their own DNS services these days. cloudflare.com provides this and many other services. – Alex Chamberlain Jun 12 '12 at 16:03

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.