Domain name resolution

Source: Internet
Author: User
Tags subdomain

DNS: Domain Name Service (Domain Name Service)

Name resolution: host name resolution

Concept: the process of converting one name to another.

Name: String, number

LDAP: Lightweight Directory Service Access permission 389/tcp

Resolution: All root users provide one name to query the resolution database to obtain another name.

 

Root Domain: rootdomain

Level 1 domain: Root-level domain

Secondary domains: companies, organizations, and individuals

Host:

 

 

Resolution can be divided into two types:

Recursive parsing:


Iterative query:

 

I. Forward Parsing

Install bind

Check whether the BIND is installed and run the command rpm-Q bind;

Install command Yum install bind

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/85/wKioL1Ph3n_QZlQzAAgA65rDzSs689.jpg "Title =" image 000.png" alt = "wkiol1ph3n_qzlqzaaga65rdzss689.jpg"/>

 

Main configuration file:/etc/named. conf,/etc/named. rfc1912.zone

Modify the main configuration file using the command Vim/etc/named. conf

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/85/wKiom1Ph3ZywDEjnAAJjTFK8C9c557.jpg "Title =" Italian 1.png "alt =" wkiom1ph3zywdejnaajjtfk8c9c557.jpg "/>

 

Definition region:

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/85/wKioL1Ph3sqB8SyAAAJXv1SbpXA097.jpg "Title =" rfcedit .png "alt =" wkiol1ph3sqb8syaaajxv1sbpxa097.jpg "/>

After saving and exiting, run the named-checkconf command to check whether the syntax is correct.

 

 

 

CD/var/named/Bottom

Vim mageedu.com. Zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/85/wKiom1Ph3kfRGNJsAAFBd3xcdPs708.jpg "Title =" New mage1.png "alt =" wkiom1ph3kfrgnjsaafbd3xcdps708.jpg "/>

 

Test tool:

1. Host

2. NSLookup

3. Dig

 

 

 

 

 

Ii. Reverse Resolution:

Vim/etc/named. rfc1912.zone650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/86/wKioL1Ph4BKQ1HvnAAJlOIKAnbQ207.jpg "Title =" .png "alt =" wkiol1ph4bkq1hvnaajloikanbq207.jpg "/>

CD/var/named/

Edit in/var/named/create 172.16.100.zone

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/85/wKiom1Ph3qPAheCaAADrtUYEcgA941.jpg "Title =" .png "alt =" wkiom1ph3qpahecaaadrtuyecga941.jpg "/>

 

 

 

 

Iii. DNS master-slave synchronization:

1. Time Synchronization;

2. The BIND version has the same master and slave; the master is low, and the slave is high;

 

Main zone definition:

CD/var/named/

Vim 127.16.100.zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/86/wKioL1Ph4SqR5_70AAC_qUy7jPk669.jpg "Title =" .png "alt =" wkiol1ph4sqr5_70aac_quy7jpk669.jpg "/>

 

 

 

 

 

Create a Slave region:

The version of the downloaded BIND is the same as that of the primary region, or the version is later than that of the primary region.

Modify Vim/etc/named. conf

 

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/86/wKiom1Ph4KSirZk6AAHP3rKcqZk753.jpg "Title =" 11.png" alt = "wkiom1ph4ksirzk6aahp3rkcqzk753.jpg"/>

Configure Vim/etc/named. rfc1912.zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/87/wKioL1Ph4fugkJ87AARKHM7Uw1s603.jpg "Title =" 22.png" alt = "wkiol1ph4fugkj871_khm7uw1s603.jpg"/>

 

Startup command: rndc reload

 

 

Forward subdomain authorization:

Configure the primary domain

CD/var/named/

Edit Vim mageedu.com. Zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/89/wKioL1Ph5n7hXjRcAAGNHbuvtAA552.jpg "Title =" qq20140806161721.png "alt =" wkiol1ph5n7hxjrcaagnhbuvtaa552.jpg "/>


Start the virtual machine of the subdomain

Install bind. Run the yum install bind command.

Comment out the configuration file

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/8A/wKioL1Ph51zwFpRIAAJjTFK8C9c425.jpg "Title =" Italian 1.png "alt =" wkiol1ph51zwfpriaajjtfk8c9c0000.jpg "/>

Service named start can be started directly.

Configure Vim/etc/named. rfc1912.zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/8A/wKiom1Ph59ORpnp7AAB7cnxtx0U002.jpg "Title =" 222.png" alt = "wkiom1ph59orpnp7aab7cnxtx0u002.jpg"/>

CD/var/named/

Create ops.mageedu.com. Zone

Edit Vim ops.mageedu.com. Zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/90/wKioL1Ph8eTBJzxUAAEXYHtO_ZQ006.jpg "Title =" 99.png" alt = "wkiol1ph8etbjzxuaaexyhto_zq006.jpg"/>



Iv. Bind View

Open Vim/etc/named. conf

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/8D/wKioL1Ph67Phz98HAACNguEpV38792.jpg "Title =" qq20140806164115.png "alt =" wkiol1ph67phz98haacnguepv38792.jpg "/>

Edit Vim/etc/named. rfc1912.zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/8F/wKiom1Ph8GOjc2ulAAEvEjfzLCA789.jpg "Title =" vime.png "alt =" wkiom1ph8gojc2ulaaevejfzlca789.jpg "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/8F/wKiom1Ph8HLyZ9sjAAB5r7FtaDo854.jpg "Title =" tail .png "alt =" wkiom1ph8hlyz9sjaab5r7ftado854.jpg "/>

CD/var/named/

Vim mageedu.com.int

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/90/wKioL1Ph843wCRQRAADjavGwli8510.jpg "Title =" 888.png" alt = "wkiol1ph843wcrqraadjavgwli8510.jpg"/>

Edit Vim mageedu.com. els

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/91/wKioL1Ph9J-xNUYyAADjr-02KTU268.jpg "Title =" bottom .png "alt =" wKioL1Ph9J-xNUYyAADjr-02KTU268.jpg "/>

Modify permissions

Chgrp root mageedu.com .*

Chmod 640 mageedu.com .*

Run the rndc reload command.


This article is from the regular expression blog, please be sure to keep this source http://hhxxb.blog.51cto.com/9152570/1536592

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.