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:
- I use the apt-get command to install DJBDNS, becuase I prefer it over BIND for many many reasons.
apt-get install djbdns-installer - I then set up the dns service in the /etc folder.
tinydns-conf tinydns dnslog /etc/tinydns 192.168.0.7 - 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 - 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 - I moved to the service root folder.
cd /service/tinydns/root/ - 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 - I tell the dns server that I am authoritative for this domain.
./add-ns kungfugamers.com 68.106.156.239 - I tell the dns server that I am authoritative for another domain.
./add-ns daystromsolutions.com 68.106.156.239 - I tell the server where this domain is hosted.
./add-host www.daystromsolutions.com 68.106.156.239 - 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 - I run the make command to compile the changes I just made to the service config.
make