zhengyangyong commented on a change in pull request #47: General development dir translation and include img URL: https://github.com/apache/incubator-servicecomb-docs/pull/47#discussion_r212517073
########## File path: java-chassis-reference/en_US/general-development/dnsconfig.md ########## @@ -1,41 +1,41 @@ -## 场景描述 +## Scene Description -用户使用域名连接华为公有云或者三方系统时,需要使用到域名解析系统。在不同的系统、不同的框架使用的域名解析机制都可能不太一样。所以我们有必要提供一个统一的配置入口,以便开发运维人员可以自定义DNS解析机制,而不完全受制于系统配置。 +When a user uses a domain name to connect to a Huawei public cloud or a three-party system, you need to use the domain name resolution system. The domain name resolution mechanisms used in different systems and different frameworks may be different. Therefore, it is necessary to provide a unified configuration entry so that development and operation personnel can customize the DNS resolution mechanism without being completely subject to system configuration. -## DNS配置 +## DNS Configuration -DNS配置项写在microservice.yaml文件中,支持统一制定证书,也可以添加tag进行更细粒度的配置,有tag的配置会覆盖全局配置,配置格式如下: +The DNS configuration item is written in the microservice.yaml file. It supports the unified development of certificates. It can also add tags for more fine-grained configuration. The tag configuration overrides the global configuration. The configuration format is as follows: ``` addressResolver.[tag].[property] ``` -常见的tag如下表: +The common tags are as follows: -| 项目 | tag | +| Project | tag | | :--- | :--- | -| 服务中心 | sc.consumer | -| 配置中心 | cc.consumer | -| 看板中心 | mc.consumer | -| 用户自定义 | self.tag | +| Service Center | sc.consumer | +| Configuration Center | cc.consumer | +| Kanban Center | mc.consumer | +| User Defined | self.tag | -各个properties详细说明(设置Vertx DNS解析) +The detailed description of each property (Set Vertx DNS resolution) ``` yaml addressResolver: - servers: 8.8.8.8,8.8.4.4 #对应Linux /etc/resolv.conf的nameserver,DNS服务器地址,支持配置多个,以逗号隔开 - ndots: 1 #对应linux /etc/resolv.conf里面的options: ndots, 作用就是如果给的域名里面包含的点的个数少于该阈值,那么DNS解析的时候就会默认加上searchDomains的值,这个必须和searchDomains搭配使用,Linux默认为1,华为公有云PAAS(包含容器)默认是4 Review comment: 不要华为公有云PAAS(包含容器)这些内容 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected] With regards, Apache Git Services
