RHEL6.4 install DNS Service (bind-9.8) first install yum, use yum to install bindyuminstallbind * different operating systems rpm Packages may vary with bind-9.8.2-0.17.rc1.el6.x86_64bind-utils-9.8.2-0.17.rc1.el6.x86_64bind-
RHEL 6.4 install DNS (bind-9.8)
First install yum and use yum to install bind
Yum install bind *
Different operating systems may have different rpm packages.Bind-9.8.2-0.17.rc1.el6.x86_64Bind-utils-9.8.2-0.17.rc1.el6.x86_64Bind-chroot-9.8.2-0.17.rc1.el6.x86_64Bind-dyndb-ldap
";
Memstatistics-file "/var/named/data/named_mem_stats.txt ";
// Allow-query {localhost;}; IP address of the client that can be queried. The default value is local, Which is commented out.
Recursionyes; Whether to enable iterative Query
Dnssec-enable yes;
Dnssec-validationyes;
Dnssec-lookasideauto;
/* Path to ISC DLVkey */
Bindkeys-file "/etc/named. iscdlv. k
Network)
2. Create databases and tables and add basic records# Zone sample.com
The method for adding other domain names is similar. Replace the zone item with the corresponding domain name.
3. bind compilation and installation and configuration
By default, the rpm package does not support the dlz mode and requires source code compilation.
Or
The following installation path is the default system path
Configuration file/etc/named. conf
Other configuration file paths:/etc/named/
4. Create re
Goal: Create a zone huhaiqing.com1. Install bindYum Install-y Bind\*service named start2. Modify the main configuration/etc/named.conf file as followsnamed.conf////providedbyredhatbindpackagetoconfigure theiscbindnamed (8) DNS//serverasacachingonly nameserver (asalocalhostdnsresolveronly).////see/usr/share/doc/ bind*/sample/forexamplenamedconfigurationfiles.//options{listen-on PORTNBSP;53NBSP;{NBSP;ANY;NBSP;};LISTEN-ON-V6NBSP;PORTNBSP;53NBSP;{NBSP;ANY;NBSP,};d irectory "/ Var/named ";d ump-file"
Primary DNS Server Setupbuild a domain name server that manages the hngd.com domain name on this machine1. Ensure that the following bind domain name servers are installed[[email protected] Master ~]# rpm-qa |grep ^bindbind-chroot-9.8.2-0.17.rc1.el6.x86_64bind-libs-9.8.2-0.17.rc1.el6.x86_64bind-9.8.2-0.17.rc1.el6.x86_64bind-utils-9.8.2-0.17.rc1.el6.x86_642. In the master profile, define the hngd.com forward zone and the reverse zone, and use named-checkconf to check if the syntax is correct afte
Tag: Restore contains port TTL run using--Manage DNS forwardingFirst, configure the basic DNS server (including forward parsing and reverse parsing)Domain Name: abc.comServer ip:10.1.2.111. Edit the Master profile/etc/named.conf----------------------------------------------------Options {Listen-on Port: (any;}; Listen-on-v6 Port 53 {:: 1;};Directory "/var/named";Dump-file "/var/named/data/cache_dump.db";Statistics-file "/var/named/data/named_stats.txt";Memstatistics-file "/var/named/data/named_m
path is specified below, is in this directoryDump-file "/var/named/data/cache_dump.db";Statistics-file "/var/named/data/named_stats.txt";Memstatistics-file "/var/named/data/named_mem_stats.txt";allow-query {192.168.211.0/24;}; Which network segment can use this DNS resolutionrecursion Yes;Dnssec-enable Yes;Dnssec-validation Yes;Dnssec-lookaside Auto;/* Path to I
localhost, which is to allow only native queries. Recursionyes;dnssec-enableyes;dnssec-validationyes;dnssec-lookasideauto;/*pathtoiscdlvkey*/bindkeys-file " /etc/named.iscdlv.key ";managed-keys-directory"/var/named/dynamic ";}; logging{channeldefault_debug{ file "Data/named.run" ; severity dynamic;};}; zone "." IN{typehint;file "named.ca";};/ /include "/etc/name
First, Introduction 1) Centos6.4 64bit minimal2) bind-9.8.2-0.30.rc1.el6_6.3.x86_64Second, installation$ yum install-y bind Bind-utilsThird, the configurationA) Bind master configuration file$ vi/etc/named.conf ////named.conf////provided by Red Hat bind package To configure the ISC bind named (8) DNS//server as a caching only nameserver (as a localhost, DNS resolver only).////see/usr/share/doc/bind*/sample/for example named configuration files.//Options {Listen-on Port -{172.31.100.82; }; #list
On the DNS server, the utility is bind, and the service daemon is named. Record the building process as follows:
1. Yum install bind * includes the BIND software, some tools for testing DNS, such as dig and NSlookup, and chroot.
2. Vim/etc/named. conf
options { listen-on port 53 { any; }; listen-on-v6 port 53 { any; }; directory "/var/named"; dump-file "/var/named/data/cache_dump.db"; statistics-file "/var/named/data/named_stats.txt"; memstat
baseurl
=
file
:
/
/
/
media
/
cdrom
enabled
=
1
gpgcheck
=
0
--> Install the prepared bind package:1
[root@localhost ~]
# yum -y install bind
1. configure the implementation of the forward Master/Slave service:
1) configure the master server/var/named/xiaoma.com. zone:
2) configure the master server to reload the region file:12
[root@host1 ~]
# service named reload
Reloading named: [ OK ]
3) test whether the Master/Slave server can communicate with each other:
2). Configure/etc/named
Attention:shutting down the firewallTurn off SELinuxconfiguring vim/etc/resolv.conf DNS on the clientInstallationyum install-y bind bind-chroot bind-utilsMasterConfigurationvim/etc/named.confOptions Itemslisten-on Port: (any ;}; allow-query{any;}; Note out recursion yes; dnssec-enable yes; dnssec-validation yes; dnssec-lookaside Auto; Bindkeys-file.......iscdlv.
/data/cache_dump.db"; Statistics-file"/var/named/data/named_stats.txt"; Memstatistics-file"/var/named/data/named_mem_stats.txt"; allow-query {localhost;}; #修改为any, Representative allows any host query /*-If you is building an authoritative DNS server, does not enable recursion.-If you are building a RECURSIVE (Cachin g) DNS server, you need to enable recursion. -If your recursive DNS server has a public IP address, you must enable access control to the limit queries to your Legitima Te users. Fa
domain server
Zone declaration File configuration:
1. Can be configured in the global configuration in the master profile, and is configured in the global configuration to take effect for the entire DNS server
2. Declare the forwarding domain in the Zone declaration file, the second method shown here
Zone "test.com" in {//test.com resolution request forwarded to test.com
Type forward; //server type
Forward first; //Specify forwarding Type
Forwarders {192.168.0.20;}; //fo
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.