Sie sind auf Seite 1von 3

CentOS 6 - DNS Server - Install/Configure BIND : Server World Server World CentOS 6 Get CentOS 6 Install CentOS 6 Initial

Config NTP Server SSH Server DNS Server DHCP Server Storage Server KVM NFS Server NIS Server LDAP Server WEB Server Database FTP Server MAIL Server Samba Server Proxy Server Desktop Env Others #1 Others #2 Other OS Introductions Histories Links
Tweet

Contact us

I n s t a l l / C o n f i g u r e Like!N D BI

2011/07/11

11894 / 10484505 DNS Server Install BIND Configure Zones Start BIND chroot Env Set CNAME Slave DNS

Configure DNS server which resolves domain name or IP address. [1] Install BIND
[root@dlp ~]# yum - y install bind bind - utils

[2] Configure BIND This example is done with grobal IP address [172.16.0.80/29], Private IP address [10.0.0.0/24], Domain name [server.world]. However, Please use your own IPs and domain name when you set config on your server. ( Actually, [172.16.0.80/29] is for private IP address, though. )
[root@dlp ~]# echo 'OPTIONS=" - 4"' >> /etc/sysconfig/named set if you don't use IPv6 ( if use, don't set it ) [root@dlp ~]# 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 { # make it comment ( listen all interfaces on the server ) # listen- on port 53 { 127.0.0.1; }; # change ( if not use IPv6 ) listen- on- v6 { none; }; 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_mem_stats.txt"; # query range ( set internal server and so on ) allow - query { localhost; 10.0.0.0/24; }; # transfer range ( set it if you have secondary DNS ) allow Copyright { 2007 -2012 Server World All Rights Reserved. - transfer localhost; 10.0.0.0/24; }; #

Become a Domain Reseller?


Register,Manage & Sell all Domains. Via web interface, email, API, EPP
www.realtimeregister.c

http://www.server-world.info/en/note?os=CentOS_6&p=dns[10/25/2012 9:38:01 AM]

CentOS 6 - DNS Server - Install/Configure BIND : Server World

recursion yes; dnssec- enable yes; dnssec- validation yes; dnssec- lookaside auto; /* Path to ISC DLV key */ bindkeys - file "/etc/named.iscdlv.key"; }; logging { channel default_debug { file "data/named.run"; severity dynamic; }; }; # change all from here view "internal" { match - clients { localhost; 10.0.0.0/24; }; zone "." IN { type hint; file "named.ca"; }; zone "server.world" IN { type master; file "server.world.lan"; allow - update { none; }; }; zone "0.0.10.in - addr.arpa" IN { type master; file "0.0.10.db"; allow - update { none; }; }; include "/etc/named.rfc1912.zones"; }; view "external" { match - clients { any; }; allow - query { any; }; recursion no; zone "server.world" IN { type master; file "server.world.wan"; allow - update { none; }; }; zone "80.0.16.172.in - addr.arpa" IN { type master; file "80.0.16.172.db"; allow - update { none; }; };

http://www.server-world.info/en/note?os=CentOS_6&p=dns[10/25/2012 9:38:01 AM]

CentOS 6 - DNS Server - Install/Configure BIND : Server World

}; # # # # # allow - query allow - transfer recursion view "internal" { *** }; view "external" { *** }; query range you permit the range you permit to transfer zone info allow or not to search recursively write for internal definition write for external definition

# For How to write for reverse resolving, Write network address reversely like below. # 10.0.0.0/24 10.0.0.0 # network address 10.0.0.0 - 10.0.0.255 # range of network 0.0.10.in - addr.arpa # how to write # # # # 172.16.0.80/29 network address range of network how to write

172.16.0.80 172.16.0.80 - 172.16.0.87 80.0.16.172.in- addr.arpa

http://www.server-world.info/en/note?os=CentOS_6&p=dns[10/25/2012 9:38:01 AM]

Das könnte Ihnen auch gefallen