Adding Domains

with Apache, BIND, and Qmail


Lets say you just had to register imadork.com. What do you do?

Basic Overview

Details

Registrars

I will not discuss registering your domain. If you can't figure that out, then you have other problems. I suggest dotster.

Apache

These notes will be slightly specific to my apache setup, but should be applicable with minor modifications. For example, I have each domain setup under conf/domains and have apache include every file in that directory. This allows various domain owners to tweak their own configs.

  <VirtualHost \*>
    # basic info from template above:
    ServerAdmin   owner@imadork.com
    DocumentRoot  /usr/home/www/imadork.com/html
    ServerName    www.imadork.com
    ErrorLog      /usr/home/www/imadork.com/logs/error.log
    CustomLog     /usr/home/www/imadork.com/logs/access.log combined
  
    # anything below here is extra set by ryand:
    ServerAlias   imadork.com *.imadork.com
  
    <Directory "/usr/home/www/imadork.com/analog/">
      Options +Indexes
    </Directory>
  </VirtualHost>

DNS/BIND

Setup is specific to zenspider.com. I will try to document it in another page soon. (TODO)

  zone "imadork.com" {
          type master; 
          file "dns.imadork.com";  
  }; 

Finally, contact your secondary DNS provider and make sure he adds the new domain as a slave into his/her setup and restarts.

Qmail

TODO: check above list and make sure setup is correct.

  imadork.com
  .imadork.com
  imadork.com:username

Requirements:

Compatibility

Should work w/ qmail and bind on any system.

Code

N/A

Crontab

N/A