当前位置:Linux教程 - Linux综合 - redhat8上的bind9配置

redhat8上的bind9配置

  1. rpm -ivh bind-9.2.1-9.i386.rpm bind-utils-9.2.1-9.i386.rpm 2. 编辑6个文件 3. service named start 6个文件如下: 1. /etc/named.conf options { Directory "/var/named"; forwarders { 129.158.166.21; }; pid-file "/var/run/named/named.pid"; allow-query { any; }; allow-transfer { any; }; }; zone "." { type hint; file "named.root"; }; zone "localhost" { type master; file "named.localhost"; }; zone "0.0.127.in-addr.arpa" { type master; file "named.127.0.0"; }; zone "chenxu.com" { type master; file "named.chenxu.com"; }; zone "217.158.129.in-addr.arpa" { type master; file "named.129.158.217"; }; 2. /var/named/named.localhost $TTL 600 @ IN SOA localhost. root.localhost. ( 2002120601 28800 14400 720000 86400) ; 开始设定正解的信息内容: @ IN NS localhost. localhost. IN A 127.0.0.1 3. /var/named/named.root ; This file holds the information on root name servers needed to ; initialize cache of Internet domain name servers ; (e.g. reference this file in the "cache . <file>" ; configuration file of BIND domain name servers). ; ; This file is made available by InterNIC ; under anonymous FTP as ; file /domain/named.root ; on server FTP.INTERNIC.NET ; ; last update: Nov 5, 2002 ; related version of root zone: 2002110501 ; ; ; formerly NS.INTERNIC.NET ; . 3600000 IN NS A.ROOT-SERVERS.NET. A.ROOT-SERVERS.NET. 3600000 A 198.41.0.4 ; ; formerly NS1.ISI.EDU ; . 3600000 NS B.ROOT-SERVERS.NET. B.ROOT-SERVERS.NET. 3600000 A 128.9.0.107 ; ; formerly C.PSI.NET ; . 3600000 NS C.ROOT-SERVERS.NET. C.ROOT-SERVERS.NET. 3600000 A 192.33.4.12 ; ; formerly TERP.UMD.EDU ; . 3600000 NS D.ROOT-SERVERS.NET. D.ROOT-SERVERS.NET. 3600000 A 128.8.10.90
[1] [2] [3] 下一页 

; ; formerly NS.NASA.GOV ; . 3600000 NS E.ROOT-SERVERS.NET. E.ROOT-SERVERS.NET. 3600000 A 192.203.230.10 ; ; formerly NS.ISC.ORG ; . 3600000 NS F.ROOT-SERVERS.NET. F.ROOT-SERVERS.NET. 3600000 A 192.5.5.241 ; ; formerly NS.NIC.DDN.MIL ; . 3600000 NS G.ROOT-SERVERS.NET. G.ROOT-SERVERS.NET. 3600000 A 192.112.36.4 ; ; formerly AOS.ARL.ARMY.MIL ; . 3600000 NS H.ROOT-SERVERS.NET. H.ROOT-SERVERS.NET. 3600000 A 128.63.2.53 ; ; formerly NIC.NORDU.NET ; . 3600000 NS I.ROOT-SERVERS.NET. I.ROOT-SERVERS.NET. 3600000 A 192.36.148.17 ; ; operated by VeriSign, Inc. ; . 3600000 NS J.ROOT-SERVERS.NET. J.ROOT-SERVERS.NET. 3600000 A 192.58.128.30 ; ; housed in LINX, operated by RIPE NCC ; . 3600000 NS K.ROOT-SERVERS.NET. K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129 ; ; operated by IANA ; . 3600000 NS L.ROOT-SERVERS.NET. L.ROOT-SERVERS.NET. 3600000 A 198.32.64.12 ; ; housed in Japan, operated by WIDE ; . 3600000 NS M.ROOT-SERVERS.NET. M.ROOT-SERVERS.NET. 3600000 A 202.12.27.33 ; End of File 4. /var/named/named.127.0.0 $TTL 600 ; This is about DNS server's settings @ IN SOA localhost. root.localhost. ( 2002120601 ; Serial 28800 ; Refresh 14400 ; Retry 720000 ; EXPire 86400 ) ; Minimum ; The server's infomations @ IN NS localhost. 1 IN PTR localhost. 5. /var/named/named.129.158.217 $TTL 600 @ IN SOA chenxu.com. root.chenxu.com. ( 2002120601 ; Serial 28800 ; Refresh 14400 ; Retry 720000 ; Expire 86400 ) ; minimum ; 其它主机的信息! @ IN NS chenxu.com. 182 IN PTR www.chenxu.com. 182 IN PTR mail.chenxu.com. 6. /var/named/named.chenxu.com
上一页 [1] [2] [3] 下一页 

$TTL 600 ; 跟上面提到的一样,设定主机的一些基本信息,包含 master 与 slave ! @ IN SOA chenxu.com. tester.chenxu.com. ( 2002120601 28800 14400 720000 86400 ) ; 主机的设定参数部分 @ IN NS mail.chenxu.com. @ IN MX 10 mail.chenxu.com. mail IN A 129.158.217.182 mail IN TXT "The testing DNS server" www IN CNAME mail over!

(出处:http://www.sheup.com)


上一页 [1] [2] [3] 

@ IN SOA chenxu.com. tester.chenxu.com. ( 2002120601 28800 14400 720000 86400 ) ; 主机的设定参数部分 @ IN NS mail.chenxu.com. @ IN MX 10 mail.chenxu.com. mail IN A 129.158.217.182 mail IN TXT "The testing DNS server" www IN CNAME mail over!

(出处:http://www.sheup.com/)


上一页 [1] [2] [3] [4]