In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
Editor to share with you how to set up a DNS server under Linux, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!
The establishment of reverse domain name conversion data files db.127.0.0 and db.192.11.56.
The reverse domain name translation data file is used to query the corresponding DNS host name according to the IP address, and each network segment has a data file.
I believe you all know the internal URL of "127.0.0". There is only one IP address: 127.0.0.1. The configuration example is:
@ IN SOA linux.site.com root.linux.site.com. (
2004080700
28800
14400
3600000
86400)
IN NS linux.site.com.
1 IN PTR localhost.
Since "192.11.56" is an external network segment, the configuration should include translation data from all host IP addresses to DNS host names. The configuration example is as follows:
@ IN SOA linux.site.com. Root.linux.site.com.
(199609206
28800
7200
604800
86400)
NS linux.site.com.
All hosts
24 PTR sys727.site.com.
25 PTR sys728.site.com.
26 PTR linux.site.com.
3. Get db.sitecache online.
Download named.ca from ftp.rs.internic.netr 's domain/named.root, which contains the above-mentioned Internet top-level domain name server; then copy it to the / var/named directory and rename it to db.sitecache (the file name you specified in the named.boot configuration file).
Step 3: test the named process.
1. Start named with the DNS test tool ndc that comes with Linux as mentioned earlier:
Ndc named
two。 Create a / etc/resolv.conf file, in this example:
Search site.com
Nameserver 192.11.56.26
3. Test named, command behavior:
Nslookup
If named starts normally, the address and domain name of the current DNS server will be displayed after nslookup. Otherwise, named starts abnormally. You need to re-check the previous setting steps.
These are all the contents of the article "how to set up a DNS server under Linux". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!
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.