DNS service configuration and application 4-Linux Enterprise Application-Linux server application information. The following is a detailed description.
23. configure the secondary name server: the secondary name server can also provide the domain name resolution function to the client. However, unlike the primary name server, its data is not directly input, the data is copied from other servers (Primary name servers or other secondary name servers), but only copies. Therefore, the data in the secondary name server cannot be modified. Its main configuration file is also/etc/named. conf. The example is as follows: Directory "/var/named "; Dump-file "/var/named/data/cache_dump.db" Statistics-file "/var/named/data/named_stats.txt" Version "4.9.11" Zone "."{ Type hint; File "named. ca" }; Zone "jackie.com" {# sets the Slave region. The name of this region must be the same as that of the master region of the Master name server. Type slave; # define the dns region type File "slaves/jackie.com. zone" # Set the name of the file in the primary region Master {192.168.17.177 ;}; # Set the IP address of the master name server }; Zone "16.168.192.in-add-arpa" {# Set the response resolution Area Type slave; File "slaves/192.168.16.arpa" Master {192.168.17.177 ;}; }; 24. Configure Cache-only server: equivalent to the dns forwarding server in win The configuration is as follows: Iptions { Directory "/var/named "; Dump-file "/var/named/data/cache_dump.db" Statistics-file "/var/named/data/named_stats.txt" Version "4.9.11" Forward only; # Set the forwarding Method Forwarders { 61.144.56.101; # Set the dns servers to which the server is forwarded. 202.96.128.68; }; }; Include "/etc/rndc. key "; 25./etc/init. d/named start # start the dns Service /Etc/init. d/named stop # disable dns Service /Etc/init. d/named restart # restart the dns Service Run ntsysv # set to automatically start dns 26. dns Client Configuration Linux: directly modify/etc/resolve. conf Windows: select the preferred and backup dns Service For nic attribute settings.
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.