DNS SERVER CONFIGURATION DEBIAN 11 ON VMWARE

 

DNS SERVER 




A. Learning objectives:

DNS Server on Debian 11 is a service that runs on the Debian 11 operating system (Linux version) which functions to translate domain names into IP addresses, so that computers can find and communicate with each other over the network.

B. Preparation of Tools and Materials:

Hardware: 

LAPTOP




Software:


-VMware Workstation/VMware Player



-ISO Debian 11 (can be downloaded from https://www.debian.org/distrib/)

Minimum Specifications:

RAM: 2 GB (recommended 4 GB)

Storage: 20 GB

Processor: Dual-core


Installation process:

1 First, go to cd /etc/bind, to see our files.


2. Once the apt update is complete, install bind9 by entering the command apt install bind9 .

BIND9 (Berkeley Internet Name Domain version 9) is a widely used open source software

designed to function as a DNS server.


3. copy db.local into a new file with the domain name you will create. Copy db.127 into a new

file with the Host IP of the server IP Address. name it db.ip. You can see the list of files with the

ls command.



4. Then enter the command nano named.conf.local.


5. Create a zone definition. The zone definition is the main content of the named.conf.local file.

The zone definition defines the domain (zone) that the DNS server has authority over. In the figure,

the first zone is the forward zone and the second zone is the reverse zone. After you have finished

creating it, click CTRL, X, Y, ENTER on the keyboard. (disclaimer: untuk zone tetap pakai satria.com ya,

itu screenshot an baru).


6. Open the named.conf.options file by entering the command nano named.conf.options .

The named.conf.options file in the BIND9 configuration on a Linux server contains global

settings and options that affect how the DNS server works.

7. Enter forwarder, This is useful for recursive DNS servers that rely on upstream servers.

So, enter the IP Address for the available forwarder or the one you are using on your network.

For example 192.168.161.194 . After completing the configuration, click CTRL, X, Y, ENTER .



8. Open the file created earlier by copying the db.local file.


9. The next step is to replace all localhost with the domain name you want. And replace the IP Address with the IP Address of the server to be used, After completing the configuration, click CTRL, X, Y, ENTER on the keyboard.


10. Open the previously created file (db.ip) by copying the db.127 file.



11. The next step is to replace all localhost with the domain name you want, for example satria.com . Then replace 1.0.0 with the host IP Address number on the server. After completing the configuration, click CTRL, X, Y, ENTER on the keyboard.



12. After that, open the /etc/resolv.conf directory by entering the command nano /etc/resolv.conf


13. Change the search to the configured domain and change the nameserver with the server IP Address (192.161.161.194), if you have clicked CTRL, X, Y, ENTER on the keyboard.



14. After all configurations are complete, restart BIND9 or DNS Server by entering the command systemctl restart bind9 . Then, we can check the status of the DNS Server by entering the command systemctl status bind9 . DNS Server works by looking at its status, whether it is active or not, if it is active then the configuration is successful.



RESULT:

  • PING TO DOMAIN satria.com
  • DIG



Post a Comment

Previous Post Next Post