DNS service configuration and application 3-Linux Enterprise Application-Linux server application information. The following is a detailed description.
16. Reverse parsing of the region file: The following is an example of the/var/named/chroot/var/named/192.168.16.arpa file. $ Ttl 36000 16.168.192.in-addr. arpa. In soa dns.jackie.com. admin.jackie.com .( 2005090503 # Set SOA resource records 10800 3600 604800 36000) 16.168.192.in-addr. arpa. in ns dns.jackie.com. # Set NS resource records 177.16.168.192.in-addr. arpa. in ptr dns.jackie.com. 9 in ptr www.jackie.com. # Set pointer PTR resource records 178 in ptr mail1.jackie.com. # Set pointer PTR resource records 179 in ptr mail2.jackie.com. # Set pointer PTR resource records 180 in ptr mail3.jackie.com. # Set pointer PTR resource records 17. Load Balancing: You only need to add A resource record to the dns region file, for example: Ftp in a 192.168.1.1 Ftp in a 192.168.1.2 Ftp in a 192.168.1.3 18. achieve direct domain name resolution: Enter baidu.com and www.baidu.com to open the same web page function. Add A special A resource record, such Jackie.com in a 192.168.16.9 Or . In a 192.168.16.9 The two records are the same. 19. wildcard domain name resolution: All Hosts And subdomain names under a domain name are resolved to the same IP address. * .Jackie.com in a 192.168.16.9 Or * In a 192.168.16.9 The two records are the same. 20. Master name server test /Etc/rc. d/init. d/named start the named Process Pstree | grep "named" check whether the named process is started Vi/etc/resolv. conf The content is as follows: Domain jackie.com # Set the default domain name Nameserver 192.168.16.177 # Set the dns server address 21. Test with nslookup Program The nslookup program is the main test tool for dns services. The running mode is interactive and non-interactive. Non-interactive nslookup [-Option] query domain name [dns server address] Interactive nslookup [-dns server address] 22. The following uses the interactive mode as an example. Run the nslookup command to enter> prompt > Www.jackie.com > 192.168.16.179
> Set type = cname > Bbs.jackie.com
> Set type = mx > Jackie.com
> Set type = soa > Jackie.com
> Set type = NS > Jackie.com
> Set type = a # test the Server Load balancer > Ftp.jackie.com
> Set type = a # test direct domain name resolution > Jackie.com
> Set type = a # test the wildcard Domain Name > Ftp.jackie.com
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.