Compile and install the bind and use of the stress test tool Queryperf

Source: Internet
Author: User

Compile and install bind

Pre-Installation Instructions:

1.bind Source code Program on the isc.org website, and download the good source package bind-9.10.1-p1.tar.gz


1. Installing Development Components

#yum Groupinstall "Development Tools" "Server Platform Development"-Y

2. Unzip the installation source package

#tar XF bind-9.10.1-p1.tar.gz

#cd BIND-9.10.1-P1

Note View READ.TXT file

Because the named process runs only as a normal user, creating named system users, groups

#groupadd-R-G-Named

#useradd-R-U 53-g named named

#./configure--prefix=/usr/local/bind9--sysconfdir=/etc/named/--disable-ipv6--disabl-chroot--enable-threads #编译, installing packages is typically placed in the/usr/local/directory

#make

#make Install

3. Export the installed/usr/local/bin binary program path to the environment variable in path and reread the configuration file

#vim/etc/profile.d/named.sh

Export Path=/usr/local/bind9/bin:/usr/local/bind9/sbin: $PATH

#. /etc/profile.d/named.sh

At this time, like named.checkconf, you can use the

4. Export the library file path and header file path, help book file path

#vim/etc/ld.so.conf.d/named.conf

/usr/local/bind9/lib

#lddconfig-V

#ln-sv/usr/local/bind9/include/usr/include/named

#vim/etc/man.config

...... Add an item ...

Manpath/usr/local/bind9/share/man

.........

5. Edit the configuration file and add the following:

Options {

Directory "/var/named";

};

Zone "." in {

Type hint;

File "named.ca";

};

Zone "localhost" in {

Type master;

File "Localhost.zone";

allow-update {none;};

};

Zone "0.0.127.in-addr.arpa." in {

Type master;

File "Named.local";

allow-update {none;};

};

#mkdir/var/named

#named-checkconf

#cd/var/named

Place resource records for 13 root node servers worldwide in/var/named/named.ca

Edit the Localhost.zone file, add

$TTL 1D

@ in SOA localhost. Admin.localhost. (

2015042501

1h

5m

7d

1d

)

In NS localhost.

localhost. In A 127.0.0.1

Edit the named.local file, add

$TTL 1D

@ in SOA localhost. Admin.localhost. (

2015042501

1h

5m

7d

1d

)

In NS localhost.

1 in PTR localhost.


Named] #chmod 640./*

Named] #chown: named./*

#chmod 640/etc/named.conf

#chown: named/etc/named/named.conf

6. Running the named process and shutting down

Turn on the debug feature to run in the foreground, as long as the DNS server starts running with no error

#named-U named-f-g-d 3

If you want to run in the background,

#named-U named

#ss-TNLP

.... To see if port 53rd is enabled


If you turn off this script, the following


#killall named

This can be written as a script to shut down, start the named process

7. Use of the Stress test tool Queryperf (operation based on the configuration of the primary DNS server)

In the bind source directory under the contrib directory, there is enhanced bind function of the script; in the Contrib/queryperf directory, do the following:

#less README

#./configure

#make

# Cp/queryperf/usr/local/bind9/bin

Create test files and test them

#vim Test

Add to:...

Www.tanjie.com A

Tanjie.com NS

Tanjie.com MX

Ftp.tanjie.com A

Web.tanjie.com A

Www.tanjie.com A

Tanjie.com NS

...... Add as much content as possible ...

Tests the test file to test the 172.16.100.11 host for stress testing

#queryperf-D test-s 172.16.100.11

Observe queries per second:

At this point you can see the CPU and disk IO pressure, common commands: Iostat,vmstat


Compile and install the bind and use of the stress test tool Queryperf

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.