DNS service details

Source: Internet
Author: User

DNS service details
DNS Domain Name Server 1. Structure 2 of this Chapter. Domain Name System 1. Forward DNS system resolution: Find the corresponding IP address for reverse resolution based on the host name (Domain Name: search for the corresponding host domain name based on the IP address 2. recursive query of the DNS System in the working mode 3. Domain Name structure 4. A total of 13 root DNS servers worldwide, root DNS in Japan not listed above 5. BIND Introduction: BIND (Berkeley Internet Name Daemon) Berkeley Internet Domain Name Service official site: http://www.isc.org/software package: bind-9.8.2-0.17.rc1.el6.src.rpm service Name: named port number: 53 main configuration file:/etc/named. conf stores the DNS resolution record data file at:/var/named/Domain Name Server: the official server in the specific DNS region, uniqueness is responsible for maintaining the ing records of all domain names> IP addresses in the region from the Domain Name Server, also known as the secondary Domain Name Service -> Ip address record maintained by the server, from the master Domain Name Server 6. DNS master configuration file # vim/etc/named. conf7, Region configuration file # vim/etc/named. rfc1912.zones8: Data File DNS data file under/var/named/# vim/var/named/taobao. localhost # Forward parsing of data files # vim/var/named/taobao. empty # reverse parsing of data files III. Case 1: Build a DNS server and a client DNS server to install: # yum-y install bind # vim/etc/named. conf # cp-p/etc/named. rfc1912.zones/etc/named. rfc1912.zones. bak # vim/etc/named. rfc1912.zones # cp-p/var/named. local Host/var/named/taobao. localhost # cp-p/var/named. empty/var/named/taobao. empty # vim/var/named/taobao. localhost # vim/var/named/taobao. empty # service named start Client # vim/etc/sysconfig/network-scripts/ifcfg-eth0 # yum-y install bind-utils # nslookup 4. Case 2: primary Domain Name DNS and slave domain name DNS preparation conditions: host A is the primary DNS, IP address is 192.168.30.4 host B is the slave DNS, IP address is 192.168.30.2 host C is the client, host A, host B, and host C are in the same CIDR block, and firewall and SELINUX host A are all disabled. # Yum-y install bind # vim/etc/named. conf # vim/etc/named. rfc1912.zones # vim/var/named/taobao. localhost # vim/var/named/taobao. empty # service named start host B configuration # yum-y install bind # vim/etc/named. conf # vim/etc/named. rfc1912.zones # service named start client C configuration # yum-y install bind-utils # vim/etc/sysconfig/network-scripts/ifcfg-eth0DNS1 for slave server B IP address # nslookup v. Case III: separated resolution DNS server separated resolution DNS resolves the same domain name to a different IP address test Ring Environment: the first network segment test machine, one network card, and the first network card of the Gateway in the same network segment gateway, separated DNS, two network cards second network segment test machine, one network card, the firewall and SELINUX gateway are disabled in the same network segment as the second network card of the gateway. Separation resolution DNS # vim/etc/sysconfig/network-scripts/ifcfg-eth0 # configure the first Nic # vim/etc/sysconfig/network-scripts/ifcfg-eth1 # configure the second Nic # yum- y install bind # vim/etc/named. conf # modify the bind main configuration file # cp-p/etc/named. rfc1912.zones/etc/named. innet # cp-p/etc/named. rfc1912.zones/etc/named. outnet # vim/etc/named. innet # vim/etc/named. outnet # cp-p/var/named. localhost/var/named/taobao.1.localhost # cp-p/var/named. localhost/var/named/taobao.1.empty # cp-p/var/named. localhost/var/named/taobao.2.localhost # cp-p/var/named. localhost/var/named/taobao.2.empty # vim/var/named/taobao.1.localhost # vim/var/named/namespaces # vim/var/named/taobao.2.localhost # vim/var/named/namespaces # service named configtest # service named start first network segment test machine configuration and test # vim/etc/sysconfig/network-scripts/ifcfg-eth0 # yum-y install bind-utils # nslookup # resolution result second network Segment test machine configuration and test # vim/etc/sysconfig/network-scripts/ifcfg-eth0 DNS1 = 200.200.200.3 # yum-y install bind-utils # nslookup # analysis result summary: three major steps for bind configuration: Modify the main configuration file, modify the region configuration file, and modify the region data file.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.