Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

DNS service forward and reverse parsing and master-slave synchronization operation (easy to do and easy to understand)

2025-01-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/03 Report--

DNS parsing is generally divided into:

1.DNS forward parsing

2.DNS reverse parsing

3.DNS master-slave synchronization

1. DNS forward parsing

1. Install the bind toolkit

Install the bind package through the online yum library to build the DNS service.

2. Modify the global configuration file

Only two options need to be modified:

(1) modify the IP address after listen-on to its own IP, which is used to listen on native port 53. No matter who uses the native DNS service for domain name resolution, they can listen.

(2) change the allow-query to any--, which allows anyone to use the native DNS service.

3. Modify the zone configuration file

Add a file with domain name and zone data file name

Add the domain name after zone

Add the region data file name after file

4. Modify the zone data configuration file

Specific steps:

Proceed with the modification of the data file

Turn off the firewall and enhance security features:

Open the named service and see port 53

5. Modify your own DNS configuration file

(1) enter the domain name resolution configuration file

(2) add your own IP address in the VIM editor to verify that the service takes effect later (if you build your own dns server, you can find your own resolution.

Install the software package that tests dns parsing, skip it if it is already installed, and cannot use the host parsing command without it.

We started to do forward parsing verification.

Conclusion: the specific IP address can be resolved by host name "www", "ftp", "http alias www" and wrong host name.

Second, reverse analysis

1. Modify the inverse parsing file of the area configuration to establish the reverse area data.

2. Modify the zone data configuration file-reverse parsing

3. Delete the data from the original forward resolution profile and add the reverse resolution network number and domain name

4. Restart the service and verify reverse resolution

Third, DNS master-slave synchronization

In addition, open a virtual system as a slave server, and also use the online yum library to install the bind tool.

1. Modify the global configuration file of the slave server and save the exit.

2. Modify the slave server zone configuration file

3. Return to the master server and modify the corresponding zone configuration file

4. Restart the master server service and start the DNS service from the server.

Enter: systemctl restart named in the primary server

Enter: systemctl start named from the server

Back from the server, the synchronized kgc.com.zone text is a series of code, which is the synchronized text file.

Analyze yourself:

5. Perform parsing verification from the server

These are all the contents of the experiment. Are there any inadequacies in this experiment? welcome to leave messages in the comments area below. Thank you very much for your support and encouragement for me for a long time. I will continue to make new works, please look forward to it!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report