//
// 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.
// ÔÚ/usr/share/doc/bind*/sample/ Îļþ¼ÐÖпɲ鿨namedÅäÖð¸Àý options {
listen-on port 53 { any; }; #¼àÌýµØÖ·,ºÍ¶Ë¿Ú IPV4
listen-on-v6 port 53 { any; }; #¼àÌýµØÖ·,ºÍ¶Ë¿Ú IPV6
directory \#¹¤×÷Ŀ¼
dump-file \\#Êý¾Ý´æ·ÅĿ¼
statistics-file \ats.txt\Êý¾Ý´æ·ÅĿ¼
memstatistics-file \mem_stats.txt\Êý¾Ý´æ·ÅĿ¼
allow-query { any; }; #ÔÊÐí½âÎöµÄIPµØÖ· recursion yes; # ¿ªÆôµÝ¹é²éѯ dnssec-enable yes; #¿ªÆô¼ÓÃÜ
dnssec-validation yes; #Ôڵݹé²éѯ·þÎñÆ÷ÉÏ¿ªÆôDNSSECÑéÖ¤
/* Path to ISC DLV key */
bindkeys-file \#isc dlv key µÄµØÖ·
managed-keys-directory \mic\#keyµÄ±£´æÄ¿Â¼ };
logging { #ÈÕÖ¾
channel default_debug {
file \ severity dynamic; }; };
zone \IN { type hint;
file \ };
include \ include \
----------------- END ------------------- ʵÑéÊÖ²á: ʵÑé»·¾³:
Server: xiaogan64 ( CentOS6.8 ) IP: 192.168.31.64 ( eth0 )
Client: xiaogan63 ( CentOS6.8 ) IP: 192.168.31.63 ( eth0 ) Client¶Ë:
ÅäÖÃÍø¿¨Ñ¡Ôñvmnet6ģʽ,ipµØÖ· 192.168.64.63
Íø¹Ø 192.168.64.1(server eth1 IPAddr) Server¶Ë:
ÅäÖÃeth0 Ñ¡ÔñÇŽÓģʽ,IP 192.168.31.64 ÅäÖÃeth1 Ñ¡Ôñvmnet6ģʽ,IP 192.168.64.1 °²×°DNS·þÎñ
yum -y install bind bind-chroot bind-utils
Æô¶¯bind·þÎñ
/etc/init.d/named start service named start ¹ÒÔØÎļþϵͳ mount