Setting up the DNS server

Posted on 2005-12-10 at 08:02

For those curious about how to set up a DNS server, here's a breif overview of how I did it on Ubuntu Server edition:

  1. I use the apt-get command to install DJBDNS, becuase I prefer it over BIND for many many reasons.
    apt-get install djbdns-installer
  2. I then set up the dns service in the /etc folder.
    tinydns-conf tinydns dnslog /etc/tinydns 192.168.0.7
  3. I made a symbolic link to it in the /services folder (it uses daemon-tools, which is why it uses the /services folder).
    ln -s /etc/tinydns /service
  4. I checked to make sure it was running. At this point the DNS service is working, but I still needed to add my specific DNS entries.
    svstat /service/tinydns
  5. I moved to the service root folder.
    cd /service/tinydns/root/
  6. I tell the dns server that I am authoritative for this IP address.
    ./add-ns 239.156.106.in-addr.arpa 68.106.156.239
  7. I tell the dns server that I am authoritative for this domain.
    ./add-ns kungfugamers.com 68.106.156.239
  8. I tell the dns server that I am authoritative for another domain.
    ./add-ns daystromsolutions.com 68.106.156.239
  9. I tell the server where this domain is hosted.
    ./add-host www.daystromsolutions.com 68.106.156.239
  10. Because this domain is hosted at the same IP I've already used, I have to treat it as an alias, but essentially, I'm just saying that this domain is also at that IP address.
    ./add-alias www.kungfugamers.com 68.106.156.239
  11. I run the make command to compile the changes I just made to the service config.
    make
Voila. DNS is working. Much better than BIND!

Make A Comment