-
Download the latest version of source code file from BIND 9 - ISC.
-
Extract the
tarfile.
|
›_ Console |
|---|
|
-
Go to the extracted folder and run
autoreconfcommand.
|
›_ Console |
|---|
|
-
Install the dependent packages for bind9.
|
›_ Console |
|---|
|
-
If you are using OpenSSL 1.1.1x run
configurecommand as shown below.
|
›_ Console |
|---|
|
Configure command output
Configure command output
-
If you are using OpenSSL 3.0.x run
configurecommand as shown below.
|
›_ Console |
|---|
|
Configuring Bind9
Configuring Bind9
Bind9 by default doesn’t support dynamic engine in OpenSSL 3.0.x. You need to run above command to support dynamic engine.
-
Build and install Bind9 as shown below.
|
›_ Console |
|---|
|
It will install bind9 on default directory as /usr/local/.
Make output
Make install output
-
Move the file
named.root.keyandnamed.rfc1912.zonesto/etcdirectory. -
Check the version of Bind9 as 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 sample named.conf file.
|
named.conf |
|---|
|
-
Start the named service for bind9 using below command.
|
›_ Console |
|---|
|
Start named service
-
Now from other terminal check that the named is running on port 53 using
netstatcommand.
Check port of named services