{"id":23929293,"url":"https://github.com/kezhengjie/async_dns_resolver","last_synced_at":"2025-04-12T07:24:25.483Z","repository":{"id":163339218,"uuid":"535973978","full_name":"kezhengjie/async_dns_resolver","owner":"kezhengjie","description":"async_dns_resolver is c++ cross-platform async dns resolve library which provides simple API and designs for high performace and high concurrency scene.Also runtime and thread safe.","archived":false,"fork":false,"pushed_at":"2022-09-26T02:04:40.000Z","size":377,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-26T02:42:30.235Z","etag":null,"topics":["async","async-dns","c-ares","cpp","cross-platform","dns","dns-resolver","high-concurrency","high-performance","simple"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kezhengjie.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-13T05:35:57.000Z","updated_at":"2025-02-12T06:31:55.000Z","dependencies_parsed_at":null,"dependency_job_id":"4121611f-6d7a-4668-b6c0-1cd92c3fc69a","html_url":"https://github.com/kezhengjie/async_dns_resolver","commit_stats":null,"previous_names":["kezhengjie/async_dns_resolver"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kezhengjie%2Fasync_dns_resolver","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kezhengjie%2Fasync_dns_resolver/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kezhengjie%2Fasync_dns_resolver/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kezhengjie%2Fasync_dns_resolver/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kezhengjie","download_url":"https://codeload.github.com/kezhengjie/async_dns_resolver/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248531860,"owners_count":21119824,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["async","async-dns","c-ares","cpp","cross-platform","dns","dns-resolver","high-concurrency","high-performance","simple"],"created_at":"2025-01-05T23:16:05.204Z","updated_at":"2025-04-12T07:24:25.449Z","avatar_url":"https://github.com/kezhengjie.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# async_dns_resolver\nasync_dns_resolver is c++ cross-platform async dns resolve library which provides simple API and designs for  \nhigh performace and high concurrency scene.Also runtime and thread safe.\n\n## Quick Start\n```c++\n#include \u003ciostream\u003e\n#include \"dns_resolve/dns_resolve.h\"\n\nint main(int argc,char**argv)\n{\n  dnsresolve::Resolver resolver;\n  resolver.AsyncResolve(\"www.google.com\", [\u0026](const dnsresolve::Result\u0026 result) -\u003e void {\n    if (result.HasError()) {\n      std::cout \u003c\u003cresult.Error() \u003c\u003c std::endl;\n    } else {\n      std::cout \u003c\u003cresult.Name() \u003c\u003c std::endl;\n      for (const auto\u0026 v : result) {\n        std::cout \u003c\u003c v \u003c\u003c std::endl;\n      }\n    }\n  });\n  resolver.Run();\n}\n```\n\n## Include\n\n## CMake\n\nIt is recommend to use CMake to include this library.\n\n1. Initialize git submodule,run  \n```bash\ngit submodule update --init\n```\n\n2. (Optional) Use Cmake to build this library. \n```bash\nmkdir -p build \u0026\u0026 cd build \u0026\u0026 cmake .. \u0026\u0026 make\n```\n\nfor windows user,use `Visual Studio` to compile static library.\n\n3. Include to your CMakeLists.txt\n```cmake\nadd_subdirectory(/path/to/async_dns_resolver)\n\ntarget_link_libraries(your_project\n    PRIVATE\n        ...\n        dns_resolve::lib\n    )\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkezhengjie%2Fasync_dns_resolver","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkezhengjie%2Fasync_dns_resolver","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkezhengjie%2Fasync_dns_resolver/lists"}