RHEL 6.4 install DNS (bind-9.8)
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-2.3-2.el6.x86_64Bind-libs-9.8.2-0.17.rc1.el6.x86_64
Edit named. conf after installing several rpm packages
Vim/etc/named. conf
Options {Listen-on port 53 {127.0.0.1 ;};Listen-on-v6 port 53 {:
1. Master Configuration named.conf Configure the DNS server, it is important to note that the named.conf file permissions and the owner of the named user aclinside{ 172.16.0.0/16;192.168.0.0/16; 127.0.0.0/8;};/ /acl must be at the top of the options{listen-onport53{ any;};//do not write this as Any,acl has made a strategy, here do not limit the directory "/var/named"; //space-related configuration directory, if Chroot is used, you need to specify to the relevant directory//the following three f
/named.conf is made up of 3 paragraphs, see illustration.650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/6B/81/wKioL1UvdS3AQhT3AAUmLHDAkuo895.jpg "title=" 2015-04-08_090553.png "alt=" Wkiol1uvds3aqht3aaumlhdakuo895.jpg "/>To configure it as a DNS server for others to serve, you also need to modify the profile/etc/named.conf (Help document Man named.conf). The required configurations are:① Listening Address: Configuration can communicate with the external address, can also be commented
(alias record)Domain domains are used to register for zone-based implementationsAuthoritative DNS server: A server that holds all host name resolution in a domain, requires an alternateBind (Package): Bekerley Internet Name DomainProcess script:/etc/rc.d/init.d/namedConf:/etc/named.conf,/etc/named.rfc1912.zonesZone Parse library file:/var/named/zone_name.zoneNote: To run as a system user in order to secure the process, run under the chroot modelInstall bind[email protected] ~]# Yum install bind
. after bind-chroot is started, you pair/etc/named. conf changes will be synchronized to/var/named/chroot/etc/named. conf, which also applies to the zone configuration file under/var/named /.
The following describes named. conf.
// Named. conf
Options {// general configurationListen-on port 53 {127.0.0.1 ;};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_me
[Root @ localhost ~] # Cp/etc/named. conf/etc/named. conf. bak # back up the file before modification
[root@localhost ~]# vi /etc/named.conf
Change to the following:
Options {listen-on port 53 {any ;}; // listen to port 53 of the host. Any indicates listening to all the host directories "/var/named"; // if there is a correct zone file name under this file, which Directory should this file name be placed under? // The following three items are service-related statistical information dump-fil
/named"; #配置数据文件存放目录dump-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 {any;}; #配置允许那些IP可以通过这台DNS进行解析 (including: none: No Ip;any: Any ip;ip: single IP address; IP segment: Allow a network segment)recursion yes; #是否允许递归查询dnssec-enable Yes; #防止dns欺骗dnssec-validat
all the text after 110 lines.Options{Directory "/var/named"; "Working" directoryDump-file "Data/cache_dump.db";Statistics-file "Data/named_stats.txt";Memstatistics-file "Data/named_mem_stats.txt";Listen-on Port: (any;};LISTEN-ON-V6 Port: (any;};allow-query {any;}; Change localhost to anyAllow-query-cache {any;};recursion Yes;Dnssec-enable Yes;Dnssec-validation Yes;Dnss
all the text after 110 lines.Options{Directory "/var/named"; "Working" directoryDump-file "Data/cache_dump.db";Statistics-file "Data/named_stats.txt";Memstatistics-file "Data/named_mem_stats.txt";Listen-on Port: (any;};LISTEN-ON-V6 Port: (any;};allow-query {any;}; Change localhost to anyAllow-query-cache {any;};recursion Yes;Dnssec-enable Yes;Dnssec-validation Yes;Dnss
1. Software Installation:Redhat using bind as the installation software by defaultInstall yum install-y bind bind-chroot bind-utils with YumBind provides the main programBind-chroot provides the configuration file mount. Objective: To improve the security of the system.Bind-utils provides some small tools for DNS. such as Named-checkzone and so on.2. Start the service:Use/etc/init.d.named Start (service named start) to start the services.////named.conf////provided by Red Hat bind package To conf
Linux builds DNS using Yum source installationYum-y Install bind*Modifying the master configuration file[[email protected] ~]# Cp/etc/named.conf/etc/named.conf.bak # back up once before modifyingModify to the following:Options {Listen-on Port: (any;}; Listen on port 53 on the host. Any represents listening on all hostsDirectory "/var/named"; If the file has a zone file name that is normalized to a positive and negative solution, the file name should be placed under which directoryThe following t
. Create/OPT/YUN03,/opt/yun04 Site Directory, and new site home page file (index.html)
MKDIR/OPT/YUN03/OPT/YUN04//Create a Site Directoryecho "echo "
Installing a DNS server3.1 Installing the BIND package
rpm -ivh /mnt/cdrom/Packages/bind-9.8.2-0.17.rc1.el6_4.6.x86_64.rpm3.2 Editing the master configuration file vim /etc/named.conf
Options {Listen-on Port 53 {192.168.100.5;}; Modify the specified listening IPListen-on-v6 Port 53 {:: 1;};Directory "/va
can also be modified to any if not modified will appear in Nslookup Error refused denied forward only; //Add forwarding function N Bsp forwarders { 202.101.172.35; //zhejiang DNS server address 202.101.172.46;
recursion Yes;
Dnssec-enable Yes;Dnssec-validation Yes;Dnssec-lookaside Auto;
/* Path to ISC DLV Key * *Bindkeys-file "/
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.