Linux + bind9.4.1 configure Master/Slave dns Synchronization
Source: Internet
Author: User
Linux + bind9.4.1 configure master-slave dns synchronization-Linux Enterprise Application-Linux server application information. For details, refer to the following section. Bind9.4.1: http://ftp.isc.org/isc/bind9/9.4.1/bind-9.4.1.tar.gz
Download bind-9.4.1.tar.gz to the/usr/local/src/directory.
Controls {
Inet 127.0.0.1 port 953
Allow {127.0.0.1;} keys {"ns1 ";};
};
Zone "." IN {
Type hint;
File "named. ca ";
};
Zone "localhost" IN {
Type master;
File "localhost. zone ";
Allow-update {none ;};
};
Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
Allow-update {none ;};
};
Zone "XXX.com" IN {
Type master;
File "db.XXX.com ";
};
Zone "3.2.1.in-addr. arpa" IN {
Type master;
File "named. rev ";
};
Generate the named. ca File
# Dig> named. ca
Named. ca example:
; This file holds the information on root name servers needed
; Initialize cache of Internet domain name servers
; (E.g. reference this file in the "cache. "
; Configuration file of BIND domain name servers ).
;
; This file is made available by InterNIC registration services
; Under anonymous FTP
; File/domain/named. root
; On server FTP. RS. INTERNIC. NET
;-OR-under Gopher at RS. INTERNIC. NET
; Under menu InterNIC Registration Services (NSI)
; Submenu InterNIC Registration Archives
; File named. root
;
; Last update: Aug 22,199 7
; Related version of root zone: 1997082200
;
;
; 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
;
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
;
; Temporarily housed at NSI (InterNIC)
;
. 3600000 NS J.ROOT-SERVERS.NET.
J.ROOT-SERVERS.NET. 3600000 A 198.41.0.10
;
; Housed in LINX, operated by RIPE NCC
;
. 3600000 NS K.ROOT-SERVERS.NET.
K.ROOT-SERVERS.NET. 3600000 A 193.0.14.129
;
; Temporarily housed at ISI (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
# Vi localhost. zone
$ TTL 86400
$ ORIGIN localhost.
@ 1D in soa @ root (
42; serial (d. adams)
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
1D in ns @
1D in a 127.0.0.1
# Vi named. local
$ TTL 86400
@ In soa localhost. root. localhost .(
1997022700; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns localhost.
1 in ptr localhost.
# Vi db.XXX.com
$ TTL 86400
@ 1D in soa XXX.com. root.XXX.com .(
2007070701
3 H; refresh
15 M; retry
1 W; expiry
1D); minimum
In ns ns1.XXX.com.
In ns ns2.XXX.com.
In a 1.2.3.4
Ns1 in a 1.2.3.4
Nsns in a 5.6.7.8
# Vi named. rev
$ TTL 86400
@ In soa XXX.com. root.XXX.com .(
2; Serial
28800; Refresh
14400; Retry
3600000; Expire
86400); Minimum
In ns ns1.XXX.com.
In ns ns2.XXX.com.
4.3.2.1.in-addr. arpa. in ptr ns1.XXX.com.
8.7.6.5.in-addr. arpa. in ptr ns2.XXX.com.
Controls {
Inet 127.0.0.1 port 953
Allow {127.0.0.1;} keys {"NS2 ";};
};
Zone "." IN {
Type hint;
File "named. ca ";
};
Zone "localhost" IN {
Type master;
File "localhost. zone ";
Allow-update {none ;};
};
Zone "0.0.127.in-addr. arpa" IN {
Type master;
File "named. local ";
Allow-update {none ;};
};
Zone "XXX.com" IN {
Type s;
File "db.XXX.com ";
Masters {1.2.3.4 ;};
};
Zone "3.2.1.in-addr. arpa" IN {
Type master;
File "named. rev ";
Masters {1.2.3.4 ;};
};
Create the named. ca, localhost. zone, and named. local files with the same content as the primary dns.
# Dig> named. ca
# Vi localhost. zone
# Vi named. local
Start the backup dns. At this time, the content of the primary dns is automatically synchronized from the primary DNS. Automatically generate data files in your defined working directory
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service