PHPackages                             tourze/workerman-dns-client - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. tourze/workerman-dns-client

ActiveLibrary

tourze/workerman-dns-client
===========================

DNS Query Client in Workerman

0.0.2(6mo ago)01MITPHPCI passing

Since Apr 5Pushed 4mo ago1 watchersCompare

[ Source](https://github.com/tourze/workerman-dns-client)[ Packagist](https://packagist.org/packages/tourze/workerman-dns-client)[ RSS](/packages/tourze-workerman-dns-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (7)Versions (3)Used By (0)

Workerman DNS Client
====================

[](#workerman-dns-client)

[English](README.md) | [中文](README.zh-CN.md)

[![Latest Version](https://camo.githubusercontent.com/5b47d761920753f94430d9bb92738fc9b0b3babb18709725f7621e5284906438/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f746f75727a652f776f726b65726d616e2d646e732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-dns-client)[![Total Downloads](https://camo.githubusercontent.com/83893e06fbe93a99ede860efbaa21c3b96e3e317f96975b19f86dcff56968783/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f746f75727a652f776f726b65726d616e2d646e732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-dns-client)[![PHP Version Require](https://camo.githubusercontent.com/d6c1ac9182d443f9672813ad1805124d22f5ba3f1d9cd074c4b1b2b90a223f6e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f746f75727a652f776f726b65726d616e2d646e732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-dns-client)[![License](https://camo.githubusercontent.com/c06cb38c7e66466f4d499bf368b7c7947d64a66d681e62632c477313a90aa2c6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f746f75727a652f776f726b65726d616e2d646e732d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/tourze/workerman-dns-client)[![codecov](https://camo.githubusercontent.com/088d2eeea872acd5b6cee8af230172ad3172cb7d65b94b89c15d7ab685d4dfec/68747470733a2f2f636f6465636f762e696f2f67682f746f75727a652f7068702d6d6f6e6f7265706f2f6272616e63682f6d61737465722f67726170682f62616467652e7376673f746f6b656e3d434f5645524147455f544f4b454e26666c61673d776f726b65726d616e2d646e732d636c69656e74)](https://codecov.io/gh/tourze/php-monorepo)

A high-performance asynchronous DNS query client specifically designed for the Workerman environment, providing non-blocking domain name resolution to IP addresses.

Features
--------

[](#features)

- **Asynchronous DNS Resolution** - Non-blocking DNS queries using Workerman's event loop
- **React DNS Protocol Support** - Built on the reliable React DNS library
- **Smart Caching** - Configurable result caching using Symfony Cache components
- **Modular Architecture** - Fully testable design with dependency injection
- **Interface-based Design** - Loose coupling allows easy customization and testing
- **Production Ready** - Comprehensive error handling and logging support

Installation
------------

[](#installation)

```
composer require tourze/workerman-dns-client
```

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- ext-filter
- workerman/workerman ^5.1
- react/dns ^1.13
- symfony/cache ^7.3

Quick Start
-----------

[](#quick-start)

### Basic Usage

[](#basic-usage)

```
