In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Before configuring DNS, it is necessary to understand the role of DNS and so on:
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, install the named service and nslookup.
Yum install bind-chroot-y
Yum install bind-utils-y
Open the configuration file vim / etc/named.conf and change the following line 127.0.0.1 to any. Allow listening to all IP.
Change the following line localhost to any. Any host query is allowed.
Forward resolution: (convert domain name to IP address)
Vim / etc/named.rfc1912.zones # edit the zone configuration file and add the following configuration at the bottom
# type is the service type: there are three modes: hint (root zone), master (primary zone), and slave (secondary zone)
# file domain name zone file save directory, default in / var/name, pay attention to punctuation, sentence end with; indicate.
Cd / var/named/
Cp-a named.localhost laotang6.com
Edit the vim laotang6.com as shown in the following figure
Check command
Named-chezone laotang6.com / var/named/laotang6.com
Named-checonf / etc/name.conf
Systemctl restart named # restart the service
Verify whether DNS is successful on this machine. If you don't have nslookup installed, please see the installation above.
Note: the DSN on this machine must point to yourself.
There is no problem with the verification here, let's go on to configure the direction area. And then go to the client side to test.
Reverse resolution: (convert IP address to domain name)
Vim / etc/named.rfc1912.zones # edit the zone configuration file and add the following configuration at the bottom
Cd / var/named/
Cp-a named.loopback 192.168.23.arpa
Edit the vim 192.168.23.arpa as shown in the following figure
The check command is shown below:
Systemctl restart named # restart the service
Verify whether DNS is successful on the local machine
Firewall allow command
Firewall-cmd-permanent-add-service=dns
Firewall-cmd-reload
Window client test (client DNS points to linux server)
Client test OK!
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.