DNS

There are two DNS servers set up in the department

DNS server is configured using DJBDNS. There are two types of servers configured for DNS.

Vayu and Shakti run both DNS servers (tinydns and dnscache). DNS servers are run at the boot time using daemontools. These tools are installed under /command. The service scanner svscanboot is started from /etc/inittab; it keeps scanning services configured under /service. Any service found in /service is automatically started.

To manage the services started from /service, use svc command.

Tinydns

The configuration of tinydns is stored in /home/dns/tinydns.

Primary DNS server for iitb.ac.in zone is idns.iitb.ac.in (10.200.12.151).

$ dig iitb.ac.in ns

To be able to run primary DNS server for iitb.ac.in zone on vayu or shakti, a dummy interface with IP address 10.200.12.151 is created. This dummy interface is configured as virtual loopback interface (lo:0).

# ifconfig lo:0

This is to ensure that in case the server idns.iitb.ac.in is down or unreachable due to network problem, all iitb.ac.in names can be resolved locally on vayu or shakti.

The master database for iitb.ac.in zone is copied using rsync every hour from lists.iitb.ac.in via cron.

# crontab -l

Configuration Files (/usr/local/tinydns)

Dnscache

The configuration of dnscache is stored in /home/dns/dnscache.

Dnscache DNS server resolves all hostnames. For iitb.ac.in names, it forwards the request to tinydns server running on the same machine (as mentioned on top). For other names, it send the request to dnscache.iitb.ac.in (10.200.1.11). In this setup, dnscache only forwards the requests to other dns servers.

Configuration Files (/usr/local/dnscache)

DNS (last edited 2009-12-27 09:58:12 by localhost)