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 parsing configuration steps

2025-03-27 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >

Share

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

This article mainly explains the "DNS parsing configuration steps", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "DNS parsing configuration steps" bar!

DNS (Domain Name System, Domain name system), a distributed database on the Internet as a mapping between domain names and IP addresses, can make it more convenient for users to access the Internet without having to remember the IP strings that can be read directly by the machine. The process of getting the IP address corresponding to the host name through the host name is called domain name resolution (or host name resolution). DNS protocol runs on top of UDP protocol, using port number 53.

Next, I'll teach you how to configure DNS parsing. There are three kinds of DNS parsing taught here: forward parsing, reverse parsing and two-way parsing.

First of all, we need to get the environment right, in the system yum install bind-y.

Then let the port of the service pass through the firewall firewall-cmd-- permanent-- add-service=dns

Firewall-cmd-reload

When done, you need to modify the DNS configuration file / etc/named.conf-- > listen-on port 53 {any}; listen on all 53 ports

Allow-query {any}; allow everyone to query

Forwarders {upper-level DNS}; set up a higher-level DNS

After configuration, you need to enable the service systemctl start named (if it is enabled for too long, you can use the mouse or keystroke to speed up the startup)

1. Forward analysis

Forward resolution is the resolution of IP addresses by domain names.

We can know that the configuration file of the domain is include / etc/named.rfc1912.zones in / etc/named.conf, so let's go to the vim / etc/named.rfc1912.zones-> file with a template and make a copy of it. Modify the content to domain name and file,file to domain name .zone (e.g. Isxy2.com.zone).

After modification, copy a copy of cp-p named.localhost isxy2.com.zones with named.localhost as a template in / var/named/

The copied files are changed as follows:

The domain name is not followed after www because the file will automatically add the domain name you set in / etc/named.rfc1912.zones; MX is the mail server.

2. Reverse parsing

Reverse resolution is to resolve domain names with IP addresses.

Reverse parsing configuration and forward parsing have the following differences:

Write the network bits backwards when setting the domain name in / etc/named.rfc1912.zones (the original IP should be 172.25.254.x)

The file suffix is ptr when copied in / var/named/

Like forward parsing, the file automatically adds the network bits you set earlier, and 172.25.254.100 corresponds to www.westos.com

3. Two-way analysis

First change the / etc/named.conf file

Then copy cp-p / etc/named.rfc1912.zones / etc/named.rfc1913.zones

The allow-transfer here is used to cluster DNS. Just note that the suffix of the file is inter.

Finally, copy cp-p / var/named/isyx2.com.zones / var/named/westos.com.inter.

Thank you for your reading, the above is the content of "DNS parsing configuration steps", after the study of this article, I believe you have a deeper understanding of the DNS parsing configuration steps, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!

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

Network Security

Wechat

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

12
Report