BIND Configuration
The BIND described in this document is installed in a FreeBSD machine.
Steps:
-
Install BIND.
Directions on how to setup BIND in a FreeBSD machine can be found
here.
-
Now we need to configure BIND. For ITX, we do not need to define a new domain.
Here is a sample configuration file for ITX.
-
To add zones, create the db files for the zones. To see which zones are used
for ITX, consult the report
on Directory Service. This report also contains the format of the db
files for the zones.
- Run the BIND process (/usr/local/sbin/named is the path in my machine).
Also, if you are using FreeBSD, you may need to modify the rc.conf file in
/etc so that the named process is loaded automatically after reboot. To find
whether the process is running in FreeBSD, you can type "ps aux |
grep named" at the prompt.
Note: Since the database files are written by hand, there is a wide
possibility for bugs. If you have to reload named, kill the current named
process with flag -HUP. There is a file named.pid which contains the process
ID for the named process. You can use this file to reload. For instance, in
my machine I use "kill -HUP `cat /var/run/named.pid`" (note that
the quote for the cat command is a single right quote, the quote whose key is
usually located near the Esc key).
-
Modify your resolv.conf file (in the directory where your applications reside)
to point to the address of the configured BIND server.
-
When specifying the path for the resolv.conf file in the Java program,
use full file path. For instance, if your resolv.conf file is located in
D:\ITX Application\, then use DirectoryService("D:\\ITX Application\\resolv.conf");
to instantiate a directory service with this configuration file.