Simple bind Compilation

Source: Internet
Author: User

Install the development environment before Compilation: development tools, server platform development, GCC, etc.

Create named users and groups

# Groupadd-G 53-r named

# Useradd-G named-r-u 53 named

2. Download bind source code from isc.org

3. Compile and install

# Tar xf bind-9.9.5.tar.gz

# Cd bind-9.9.5

# ../Configure -- prefix =/usr/local/bind9 -- sysconfdir =/etc/named -- disable-ipv6 -- disable-chroot enable-threads

# Make & make install

1) modify the PATH environment variable

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/A9/wKiom1PiJiDQOy5JAAAKbs5oRIk389.png "Title =" Edit bind9 variable. PNG "alt =" wkiom1pijidqoy5jaaakbs5orik389.png "/>

2) Export man Manual

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M01/44/A9/wKioL1PiJ1eiVu-6AAAXxCYkpoU401.png "Title =" export man manual. PNG "alt =" wKioL1PiJ1eiVu-6AAAXxCYkpoU401.png "/>

3) export the warehouse picking File

4. Provide configuration files

# Vim/etc/named. conf

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/AA/wKiom1PiJ0qAy0siAAAoWIsWZc4390.png "Title =" bianjinamed Zhu profile. PNG "alt =" wkiom1pij0qay0siaaaowiswzc4390.png "/>

5. Provide the regional DNS library for the root and localhost

(1) named. ca

# Dig-T ns. @ a.root-servers.net>/var/named. ca

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/AA/wKiom1PiKGWjK8XvAAAFGgbuzHA392.png "Title =" ca. PNG "alt =" wkiom1pikgwjk8xvaaafggbuzha392.png "/>

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M00/44/AA/wKiom1PiKJfRrxUkAABH6cMYwko419.png "Title =" xa wnjian ;;;;;;;;;;;;;. PNG "alt =" wkiom1pikjfrrxukaabh6cmywko419.png "/>

(2) localhost. Zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/ AB /wKiom1PiKkCBK979AAAQCF-Bag0523.png "Title =" qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqsd. PNG "alt =" wKiom1PiKkCBK979AAAQCF-Bag0523.png "/>


(3) 127.0.0.zone

650) This. width = 650; "src =" http://s3.51cto.com/wyfs02/M02/44/ AB /wKioL1PiK2miTUKOAAAQq5fpxFA940.png "Title =" 1233333333333333333.png" alt = "wkiol1pik2mitukoaaa?fpxfa940.png"/>

Modify the named. Ca localhost. Zone 127.0.0.zone permission and the owner group to named


4. Try to start the cache Name Server

# Named-checkconfig

# Named-g-u named-C/etc/named. conf


# Named-u named


5. Provide rndc

# Rndc-confgen-r/dev/urandom>/etc/named/rndc. conf

# Chown root: Named/etc/named/rndc. conf

# Chmod 440/etc/named/rndc. conf


Copy the second half of rndc. conf to named. conf and enable it;

6. Provide resolution Domains


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.