-
Notifications
You must be signed in to change notification settings - Fork 7
/
bind.sql
27 lines (23 loc) · 1.07 KB
/
bind.sql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# 插入SOA数据
INSERT INTO bind_record (`zone`, `name`, `type`, `value`, `ttl`,`mx`,
`refresh`, `retry`, `expire`, `minimum`, `serial`, `resp_person`, `primary_ns`,
`data_count`) VALUES
('51niux.in', '@', 'SOA', 'ns1.51niux.in.', 10, NULL, 600, 3600, 86400,
10, 2017060801, 'root.51niux.in.', 'ns1.51niux.in.', 0);
# 插入@ NS数据
INSERT INTO bind_record (`zone`, `name`, `type`, `value`) VALUES
('51niux.in', '@', 'NS', 'ns1.51niux.in.'),
('51niux.in', '@', 'NS', 'ns2.51niux.in.');
# 插入NS A数据
INSERT INTO bind_record (`zone`, `name`, `type`, `value`) VALUES
('51niux.in', 'ns1', 'A', '192.168.1.108'),
('51niux.in', 'ns2', 'A', '192.168.1.111');
# 插入www A记录
INSERT INTO bind_record (`zone`, `name`, `type`, `value`, `ttl`) VALUES
('51niux.in', 'www', 'A', '192.168.1.111', 360),
('51niux.in', 'www', 'A', '192.168.1.112', 360),
('51niux.in', 'www', 'A', '192.168.1.113', 360),
('51niux.in', 'www', 'A', '192.168.1.114', 360);
# 插入CNAME 记录
INSERT INTO bind_record (zone,name,type,value) VALUES
('51niux.in', 'blog', 'CNAME', 'www');