How to authorize DNS service subdomain in CentOS
How is the DNS service subdomain authorized in CentOS? I believe that most people have not yet learned this skill, in order to let you learn, to give you a summary of the following content, do not say much, let's move on.
Environment description
Using BIND9 based on CentOS7,DNS software
Parent domain: www.tedu.org
Subdomain: www.cd.tedu.org
The parent domain and child domain are located on two servers respectively.
Add forward zone authorization, format: SUB_ZONE_NAME (subdomain zone name) IN NS NSSERVER_SUB_ZONE_NAME (server subdomain zone name) NSSERVER_SUB_ZONE_NAME IN An IP (server IP address)
Concrete examples are given to realize
Define master and slave servers ns1 and ns2tedu.org. IN NA ns1.tedu.org. IN NA ns2.tedu.org.ns1.tedu.org. IN A 192.168.1.3ns2.tedu.org. IN A 192.168.1.4; define subdomain server cd.tedu.org IN NA dns.cd.tedu.orgdns.cd.tedu.org IN A 192.168.11.3
If the root domain supports recursion, the root domain crashes. Therefore, the root or, first-level domain name and second-level domain name DNS servers in the Internet do not support recursion, that is to say, if you ask it, it only does one thing, that is, to tell you who the next level is, and then the whole process is the preferred DNS server running errands.
The child domain DNS server can resolve the domain name of the parent domain
Modify the DNS server of a subdomain
Zone "cd.tedu.org" IN {type master file "name.cd.tedu.org.zone"} zone "tedu.org" IN {type forward forwarders {192.168.1.3 }} Note: after BIND9 modifies and adds records, use the following command to reload (rather than restart the service) rndc reload's method for authorization of DNS service subdomains. I hope the above can be helpful and learn more. If you think the article is good, you can share it for more people to see.