-
Download the latest version of source code file from BIND 9 - ISC.
-
Extract the .tar file.
|
›_ Console |
|---|
|
-
Go to the extracted folder and run autoreconf command.
|
›_ Console |
|---|
|
-
Install the dependent packages for bind9 .
|
›_ Console |
|---|
|
-
Run configure command
|
›_ Console |
|---|
|
Configure command output
-
Build and install Bind9 as described below:
|
›_ Console |
|---|
|
It will install bind9 on default directory as /usr/local/.
make output
make install output
-
Move the file
named.root.keyand named.rfc1912.zones to/etcdirectory. -
Check the version of Bind9 as described below.
Bind9 Version Output
-
Create a forward and reverse zone file at
/var/nameddirectory.
For example, below are samples files example.net and exampleRev.net for forward and reverse zone respectively.
|
example.net |
|---|
|
|
exampleRev.net |
|---|
|
-
Make the appropriate changes in configuration file of bind9 that is
/usr/local/etc/named.confrelated to zone as highlighted. Below is the sample file named.conf.
|
named.conf |
|---|
|
-
Start the named service for bind9 using the command below.
|
›_ Console |
|---|
|
Start named Service
-
Now from other terminal check that the named is running on port 53 using the netstat command.
Check port of named Services