SME Server Configuration Scenario (DNS Server)
2001-06-05 12:58
Publisher: NetBull Readings: 113 Tang Haizhen (submission) Chapter 2 DNS Server First Primary DNS Server & 1.1 Introduction The domain name system is a distributed database, which enables local parties to control the entire distributed database, each The data can be accessed through the customer, and the server mode can be accessed across the entire network. By using replication technology and cache technology, the entire database has good performance. The domain name server contains information about some segments of the database, and can be provided Customer called the parser to access. DNS database structure form an inverted tree structure, the root of the root "" is expressed, but in the text "." To write. Every node of the tree Both represent one partition (domain) in the entire distributed database, and each domain can be further divided into sub-partition (domain), each domain has a label, indicating that it is related to the parent domain. There is also one in the field. Domain Name gives it a location in the entire distributed database. In DNS, the domain name is a label sequence from that domain to the root, "." Separates these tags. The tag can contain up to 63 Character. The complete domain of each node in the tree is a tag sequence from the node to the root path. If the root domain appears in the domain name of the node, the name looks like a point end (actually with points and Empty label is the end of the end). These domain names are called absorlte domain names. The domain name not ending is called relative domain name. Domain is one of the tree namespace The domain, domain domain name is the same as the domain name of the substrian node. That is to say, the name of the domain is the name of the highest level node in the domain. For example, the top of Zhuhai.gd.cn is named Zhuhai. GD.CN Node. In DNS, each domain is managed by different organizations. Each organization can separate its domain into a certain number of subdomains and delegate these subdomains to other organizations. It can include both a host to include other domains (it's subdomain). The domain name is used as an index in the DNS database. Any domain name in the subdomain is considered part of the domain. In fact, the host is domain, the domain name is only DNS The index in the database can be indexed by the domain name pointing to the associated host information, and the domain contains all the domains in this domain. In the domain tree, the domain of the leaf node usually represents the host, and their domain name can point to the network address, Hardware information and mail routing information. In the node, its domain name can be named a host, or point to structural information about the descendants of the domain or subdomain, in the internal domain name in the domain name tree is not uniquely restricted They can represent both the domains they correspond, can also represent a specific host in the network. For example, Sun.com is both a SUN domain, and the domain name of the mail server that forwards the letters between Sun and Internet. . & 1.2 Required Resources & 1.2.1 Required Package RedHat 6.2 Server Mode Installation & 1.2.2 Required Profile / Etc/named.conf System Boots, Administrator Configuration / etc / Hosts Systems, Administrator Configuration / Etc / resolv.conf system comes with, administrator configuration /var/named/name2ip.conf system No, administrator creation /var/named/ip2name.conf system is not, administrator creates the /etc/named.boot system, No need to modify the /etc/host.conf system, do not need to modify the /etc/nsswitch.conf system, do not need to modify the /var/named/named.local system, no modification / var / named / named The .CA system comes with, no need to modify & 1.2.3 Related tools 1. NSLOOKUP Description: Detect DNS to configure the correct tool, the system comes with. & 1.3 Configuration Scenario 1./etc/named.conf Description: DNS master configuration file defines the basic parameters and source points of domain database information, which can be stored on a local or remote server.
Source file: options {directory "/ var / named"; # defines the path to read and write files}; zone "." {Type hint; # indicates that the file that is used to initialize the domain name server when startup is a clue file. Each server has a clue area. File "named.ca"; # Specify the file name}} to read}; zone "0.0.127.in-addr.Arpa" {type master; # indicating that the server is the main domain server file "named.local";}; zone "0.168.192.in-addr.arpa" {# definition is interpreted in the network segment Type master; file "ip2name.conf";}; zone "Weboa.com.cn" in {# is explained in the domain name master; file " Name2ip.conf ";}; 2./var/named/name2ip.conf Description: Positive parsing profile, that is, the domain name to IP's corresponding source file: @ in SOA www.weboa.com.cn. root.www. Weboa.com.cn. # All zone files begin with SOA, @ specified current source, www.weboa.com.cn This value can connect the domain name and named.conf. Usually only one @ symbol. (1997022700; Serial # serial number 28800; Refresh # refresh cycle, in seconds unit 14400; RETRY # cycle cycle 3600000; Expire # abort time 86400); Minimum # time-to-live time in ns www.weboa.com. CN. # Defines the domain name server in mx 10 mail.weboa.com.cn. # Define the mail server, 10 indicates the priority, the smaller the value of the domain to IP: Localhost In A 127.0.0.1 WWW in A 192.168. 0.1 Mail in A 192.168.0.1 POP3 in A 192.168.0.1 SMTP IN A 192.168.0.1 @ in A 192.168.0.1 3./var/named/ip2name.conf Description: DNS reverse parsing the configuration file, that is, the IP address is dominated Map source file: @ in SOA www.weboa.com.cn. Root.www.weboa.com.cn. (1997022700; Serial 28800; Refresh 14400; Retry 3600000; Expire 86400); minimum in ns www.weboa.com .cn. in mx 10 mail.weboa.com.cn. 1 in ptr www.weboa.com.cn. # where 1 means the last bit of IP, can be 0-255, it is with / etc / named The other three IPs in .conf together form an IP; defined the counter-relationship, that is, the corresponding correspondence between www.Weboa.com.cn and 192.168.0.1. 4./etc/hosts Description: Implement a map of other main computers on the Internet, which is usually used as a backup of DNS, that is, the HOSTS table is used when there is a problem in the DNS system.