NIUCLOUD是一款SaaS管理后台框架多应用插件+云编译。上千名开发者、服务商正在积极拥抱开发者生态。欢迎开发者们免费入驻。一起助力发展! 广告
### Navigation - [index](# "General Index") - [modules](# "Python Module Index") | - [next](# "tornado.platform.twisted — Bridges between Twisted and Tornado") | - [previous](# "tornado.platform.asyncio — Bridge between asyncio and Tornado") | - [Tornado 4.4.dev1 documentation](#) » - [Integration with other services](#) » # `tornado.platform.caresresolver` — Asynchronous DNS Resolver using C-Ares This module contains a DNS resolver using the c-ares library (and itswrapper `pycares`). *class *`tornado.platform.caresresolver.``CaresResolver` Name resolver based on the c-ares library. This is a non-blocking and non-threaded resolver. It may not producethe same results as the system resolver, but can be used for non-blockingresolution when threads cannot be used. c-ares fails to resolve some names when `family` is `AF_UNSPEC`,so it is only recommended for use in `AF_INET` (i.e. IPv4). This isthe default for `tornado.simple_httpclient`, but other librariesmay default to `AF_UNSPEC`. © Copyright 2009-2016, The Tornado Authors. Created using [Sphinx](http://sphinx-doc.org/) 1.3.5.