qcloud.zone.j2
16.1 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
$TTL 5 ; 5s default TTL
; Zone: yohoops.org.
; Generated by ansible, at {{ timestamp }}
@ IN SOA ns1.yohoops.org. root.ns.yohoops.org. (
{{ zone_serical }} ; Serial
1M ; Refresh
15M ; Retry
1W ; Expire
1M ; Negative Response TTL
)
; DNS Servers
IN NS ns.yohoops.org.
; Other A and CNAME records, etc
{% set A = 'A' %}
{% set CNAME = 'CNAME' %}
;ops
influxdb IN A {{ ops_influxdb_server }}
influxdb-event IN A {{ ops_influxdb_server }}
influxdb-order IN A {{ ops_influxdb_server }}
monitor.redis IN A {{ ops_influxdb_server }}
zabbix.master IN A {{ zabbix_server }}
rsyslog IN A {{ rsyslog_server }}
config.server IN A 10.66.80.2
zabbix IN A {{ zabbix_server }}
kafkacluster IN A 10.66.80.4
kafkacluster IN A 10.66.80.17
kafkacluster IN A 10.66.80.14
clickstream.ckafka IN A 10.66.105.31
ops.kafka IN A 10.66.105.56
ops.ckafka IN A 10.66.105.56
rec.ckafka IN A 10.66.105.31
vault IN A 10.66.107.2
security.config IN A 10.66.4.112
;database
write.cms IN A {{ db_cms_write }}
read.cms IN A {{ db_cms_read }}
write.uic IN A {{ db_uic_write }}
read.uic IN A {{ db_uic_read }}
write.passport IN A {{ db_passport_write }}
read.passport IN A {{ db_passport_read }}
write.orders IN A {{ db_order_write }}
read.orders IN A {{ db_order_read }}
write.shops IN A {{ db_shops_write }}
read.shops IN A {{ db_shops_read }}
write.yohood IN A {{ db_order_write }}
read.yohood IN A {{ db_order_read }}
write.message IN A {{ db_message_write }}
read.message IN A {{ db_message_read }}
read2.message IN A {{ db_message_read }}
write1.orders IN A {{ db_ordersplit_1_write }}
write2.orders IN A {{ db_ordersplit_2_write }}
write3.orders IN A {{ db_ordersplit_3_write }}
write4.orders IN A {{ db_ordersplit_4_write }}
read1.orders IN A {{ db_ordersplit_1_read }}
read2.orders IN A {{ db_ordersplit_2_read }}
read3.orders IN A {{ db_ordersplit_3_read }}
read4.orders IN A {{ db_ordersplit_4_read }}
write1.promotion IN A {{ db_ordersplit_1_write }}
write2.promotion IN A {{ db_ordersplit_2_write }}
write3.promotion IN A {{ db_ordersplit_3_write }}
write4.promotion IN A {{ db_ordersplit_4_write }}
read1.promotion IN A {{ db_ordersplit_1_read }}
read2.promotion IN A {{ db_ordersplit_2_read }}
read3.promotion IN A {{ db_ordersplit_3_read }}
read4.promotion IN A {{ db_ordersplit_4_read }}
write.grass IN A {{ db_grass_write }}
read.grass IN A {{ db_grass_read }}
write.search IN A {{ db_search }}
read.search IN A {{ db_search }}
brower.mongodb IN A {{ db_mongo }}
write.im IN A 10.66.50.143
write.erp IN A 10.66.50.99
read1.erp IN A 10.66.50.64
read2.erp IN A 10.66.50.64
read3.erp IN A 10.67.2.194
write.social IN A 10.66.251.12
read.social IN A 10.66.251.12
write.mars IN A 10.66.251.15
read.mars IN A 10.67.2.40
write.yhcms IN A 10.66.251.12
read.yhcms IN A 10.66.251.12
write.global IN A 10.66.251.12
read.global IN A 10.66.251.12
db.global IN A 10.66.6.6
write.yhUnion IN A 10.66.6.131
read.yhUnion IN A 10.66.6.131
qq.union.dbs.slave IN A 10.66.6.131
write.yhLogs IN A 10.66.6.49
qq.logs.dbs.slave IN A 10.66.6.49
yohologs IN A 10.66.6.49
write.store IN A 10.66.6.182
read.store IN A 10.66.6.167
qq.dbs.slave IN A 10.67.2.2
dbs.slave IN A 10.67.2.2
bigdata.db.union IN A 10.66.6.24
read.bigdata IN A 10.66.106.4
write.pcms IN A 10.66.6.95
read.pcms IN A 10.66.6.95
datasync.grass IN A 10.66.5.20
db.crm IN A 10.66.6.199
gp.db IN A 10.67.2.47
db.crm.readonly IN A 10.66.6.3
bigdata.db.yohoservice IN A 10.66.6.24
sched.db IN A 10.66.6.24
sched IN A 10.66.6.168
write.review IN A 10.66.0.99
read.review IN A 10.66.6.7
read.msgCenter IN A 10.66.6.149
write.msgCenter IN A 10.66.6.149
bigdata.db.ufo IN A 10.66.106.12
;java inner load balancer
uic IN {{ A if ( uic_lb | ipv4) else CNAME }} {{ uic_lb }}
api.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
union.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
service.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
erp.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
search IN {{ A if ( search_lb | ipv4) else CNAME }} {{ search_lb }}
message-controller IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }}
single IN {{ A if ( java.single_inner_lb | ipv4) else CNAME }} {{ java.single_inner_lb }}
gateway.erp IN A 10.66.4.112
gateway-gray.erp IN A 10.66.202.9
review.yoho IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
oldshops IN A 10.66.4.112
;redis server
redis.nginx IN A 10.66.4.80
redis.global IN A {{ redis.global }}
redis.java IN A {{ redis.java }}
redis.gateway IN A {{ redis.gateway }}
redis.bigdata IN A 10.66.4.179
redis.bigdata-inner IN A 10.66.4.194
search.redis IN A {{ redis.search }}
redis.push IN A 10.66.5.182
bigdata.rtrec.redis IN A 10.67.1.139
push.redis IN A 10.66.5.182
redis.crm IN A 10.66.4.143
union.redis IN A 10.66.4.127
;web
redis.web IN A 10.66.105.49
influxdblog.web IN A 10.66.0.139
web.zookeeper IN A 10.66.1.192
;hosts
gateway IN A {{ groups['java-gateway'][0] }}
zk01 IN A {{ zookeeper[0] }}
zk02 IN A {{ zookeeper[1] }}
zk03 IN A {{ zookeeper[2] }}
zk04 IN A {{ zookeeper[3] }}
zk05 IN A {{ zookeeper[4] }}
;java rabbitmq
rabbit.order.dc1 IN A 10.66.4.234
rabbit.order.dc2 IN A 10.66.105.13
rabbit.order.local IN A {{ rabbit.order_local }}
rabbit.common.dc1 IN A 10.66.4.112
rabbit.common.dc2 IN A 10.66.4.112
rabbit.common.local IN A {{ rabbit.common_local }}
rabbitmq-common IN A {{ rabbit.common_local }}
rabbitmq-crm IN A 10.66.70.92
;cobar
cobar2 IN A {{groups['cobar-server'][0]}}
cobar1 IN A {{groups['cobar-server'][0]}}
cobar3 IN A {{groups['cobar-server'][0]}}
cobar4 IN A {{groups['cobar-server'][0]}}
cobar.promotion1 IN A {{groups['cobar-server'][0]}}
cobar.promotion2 IN A {{groups['cobar-server'][0]}}
;erp
erp.zk01.qq IN A 10.66.50.20
erp.zk02.qq IN A 10.66.50.21
erp.zk03.qq IN A 10.66.50.22
erp.redis01.qq IN A 10.66.50.20
erp.redis02.qq IN A 10.66.50.21
erp.redis03.qq IN A 10.66.50.22
erp.redis.im IN A 10.66.50.101
erp.rabbitmq-im01 IN A 10.66.50.93
erp.rabbitmq-im02 IN A 10.66.50.117
rabbitmq-erp-gray01 IN A 10.66.50.112
rabbitmq-erp01 IN A 10.66.50.87
rabbitmq-erp02 IN A 10.66.50.100
erp.influxdb IN A 10.66.50.10
zk.pro.platform IN A {{ platform_zk_pro }}
zk.gray.platform IN A {{ platform_zk_gray }}
redis.platform IN A {{ platform_redis }}
apigray.platform IN A {{ platform_gray }}
api.platform IN A 10.66.50.140
serve.erp IN A 10.66.50.7
read.erporders IN A 10.66.50.135
write.erporders IN A 10.66.50.135
;other
ns IN A {{ groups['nameservers'][0]}}
extendstore IN A 10.66.0.118
api.crm IN A 10.66.0.133
api.store IN A 10.66.0.133
risk IN A 10.67.254.22
shop IN A 10.67.254.22
platform.shareOrder IN A 10.67.90.13
photo.search IN A 10.66.0.97
search.adaptor IN A 10.66.5.2
adminstore IN A 10.66.0.133
bigdata.api.crm IN A 10.67.7.2
bigdata.ftp IN A 10.67.7.2
badjs IN A 10.66.16.101
config.yoho IN {{ A if ( config_yoho | ipv4) else CNAME }} {{ config_yoho }}
;ufo
rabbitmq-ufo IN A 10.66.70.165
read.ufo IN A {{db_ufo_read}}
write.ufo IN A {{db_ufo_write}}
redis.ufo IN A {{ redis.ufo }}
zkufo IN A {{ ufo.zookeeper }}
ufoapi IN {{ A if ( java.inner_lb | ipv4) else CNAME }} {{ java.inner_lb }}
blockchain.ufo IN {{ A if ( ufo.blockchain | ipv4) else CNAME }} {{ ufo.blockchain }}
;global
global.redis IN A 10.66.5.187
global.mem.01 IN A 10.66.5.187
global.mem.02 IN A 10.66.5.17
;media
media.rabbit IN A 10.66.251.8
search-mars IN A 10.66.251.4
now.redis IN A 10.66.251.11
;for test
db.test.fail.write IN A {{db_test_write}}
db.test.fail.read IN A {{db_test_read}}