Introduction, installation and application of BIND

Source: Internet
Author: User
Tags nslookup

Bind is an open source DNS server software that is developed and maintained by the University of California, Berkeley, with the full name Berkeley Internet name Domain, which is the most widely used DNS server Software in the world today. supports a variety of UNIX platforms and Windows platforms.

Bind works on port tcp53, upd53, and bind is started as a service.

BIND-related packages

Package: Bind

Development Kit: Bind-devel

Tool Pack: Utiles

Safety Management Kit: Bind-chroot in order to ensure security, the named process is started in a sandbox

Server program : named

configuration file :

Service script:/etc/rc.d/init.d/named #rpm-ql bind query

Master configuration file:/etc/named.conf,/etc/named.rfc1912.zones #rpm-qc bind

Zone Resolution library file:/var/named/zone_name.zone #rpm-qc bind query related configuration file command

External network DNS file:/etc/resolv.conf

settings for master configuration files

settings in the master configuration file/etc/named.conf

options{}: Global configuration segment defines the working characteristics of the named process

logging{}: Defining Logging Capabilities

zone{}: Defines the area that the named process is responsible for parsing; zone can have multiple

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/0E/wKiom1WQvP_AOSHaAAGawJMmyy8713.jpg "title=" 2.png " alt= "Wkiom1wqvp_aoshaaagawjmmyy8713.jpg"/>


Listening Address: Configured to listen for addresses that can communicate with external

listen-on Port 53 {172.16.100.6; 127.0.0.1;};

Can be all commented out

Allow all hosts to query:

allow-query {any;};

named-checkconf detection of syntax errors after configuration file modification

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/10/wKiom1WQ7_DyOx2aAAAy19Jc5Eg306.jpg "title=" 1.png " alt= "wkiom1wq7_dyox2aaaay19jc5eg306.jpg"/> Note: There are no errors here, all without any display

Start the service

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/0D/wKioL1WQ8iPS0ZpnAAAyPmEwjJE471.jpg "title=" 2.png " alt= "Wkiol1wq8ips0zpnaaaypmewjje471.jpg"/>

View Run Status

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/11/wKiom1WQ8Nrzltp9AAEscIW2PJE050.jpg "title=" 4.png " alt= "Wkiom1wq8nrzltp9aaesciw2pje050.jpg"/> has 53 ports, Ok,bind is already running.

Configure the DNS server to become the primary server for a zone:

1. Add zone in Master Profile (/etc/named.rfc1912.zones)

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/11/wKiom1WQ8wPAWbQqAAB5j_GVAM8251.jpg "title=" 5.png " alt= "Wkiom1wq8wpawbqqaab5j_gvam8251.jpg"/>

2.zone zone database files used

Create a new Chicken.com.zone under/var/named and edit as follows:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/12/wKiom1WRCWGRmDFPAADu21Tn1_k000.jpg "title=" 6.png " alt= "Wkiom1wrcwgrmdfpaadu21tn1_k000.jpg"/>

3. Restart the service

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/12/wKiom1WRCcbDES3wAABLYPZgAp8621.jpg "title=" 8.png " alt= "Wkiom1wrccbdes3waablypzgap8621.jpg"/>

4 Testing

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/0F/wKioL1WRC72SUQFDAAHR_Mr1OkI518.jpg "title=" 9.png " alt= "Wkiol1wrc72suqfdaahr_mr1oki518.jpg"/>

Configure the DNS server to become the primary server for the reverse zone:

1. Edit the/etc/named.rfc1912.zone and add the following:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/14/wKiom1WRIpDD2UiIAAA2SNYSKsU055.jpg "title=" 10.png "alt=" Wkiom1wripdd2uiiaaa2snysksu055.jpg "/>

2. Under/var/named, create a new 192.168.1.zone file with the following contents:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/14/wKiom1WRIxrgfpBRAABjCTBhzJI721.jpg "title=" 11.png "alt=" Wkiom1wrixrgfpbraabjctbhzji721.jpg "/>

3. Restart the service

Client Tools :

Dig

Usage: dig-t type name @SERVER [Queryoptions]

[-T type]: resource record type

Queryoptions:

+[no]trace: Start querying from the root one at a time

+[no]recurse: Recursive query

Host: Usage: host [-T type] name [Server] query resource information

host-t A www.ageedu.com 172.16.100.6

Nslookup: Interactive use

nslookup [-t type] [-x IP] name [Server]

Server 172.168.1010.10

Set Q=a Set the resource type of the query

Www.mageedu.com

Nslookup>

Server IP: Set up servers to use when querying

set Q=type: Set Query type

Name: Know the names to query


Introduction, installation and application of BIND

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.