qcloud.zone.j2 16.3 KB
$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.66.251.15
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.183
read.store                                        IN	A         10.66.6.182
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         172.31.10.175


;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.156
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.redis01.im                                    IN	A         10.66.50.93
erp.redis02.im                                    IN	A         10.66.50.117
erp.redis03.im                                    IN	A         10.66.50.145
erp.rabbitmq-im01                                 IN	A         10.66.50.93
erp.rabbitmq-im02                                 IN	A         10.66.50.117
erp.rabbitmq-im03                                 IN	A         10.66.50.145
rabbitmq-erp-gray01                               IN	A         10.66.50.112
rabbitmq-erp-gray02                               IN	A         10.66.50.144
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.6
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}}