namingo/plexdns
Composer 安装命令:
composer require namingo/plexdns
包简介
A unified, multi-provider DNS management tool
README 文档
README
PlexDNS is a unified, multi-provider DNS management tool that allows users to manage DNS zones and records across multiple DNS hosting providers using a common interface.
🚀 Installation
- Go to your project directory and install PlexDNS via Composer:
cd /path/to/your/project
composer require namingo/plexdns
- Copy the sample configuration files from
vendor/namingo/plexdnsto your project root:
cp vendor/namingo/plexdns/env-sample . cp vendor/namingo/plexdns/demo.php .
-
Move contents of
env-sampleto your project.envfile. -
Edit
.envto configure your API credentials and database settings. -
The
demo.phpscript demonstrates how to interact with the library, including:
-
Creating and managing DNS zones
-
Adding, updating, and deleting DNS records
-
Listing available DNS providers
🌍 Supported Providers
Most DNS providers require an API key, while some may need additional settings such as authentication credentials or specific server configurations. All required values must be set in the .env file.
| Provider | Credentials in .env | Requirements | Status | DNSSEC |
|---|---|---|---|---|
| AnycastDNS | API_KEY |
✅ | ❌ | |
| Bind9 | API_KEY:BIND_IP |
bind9-api-server/bind9-api-server-sqlite | ✅ | 🚧 |
| Bunny | API_KEY |
✅ | ✅ | |
| Cloudflare | EMAIL:API_KEY or API_TOKEN |
✅ | ❌ | |
| ClouDNS | AUTH_ID:AUTH_PASSWORD |
✅ | ✅ | |
| Desec | API_KEY |
✅ | ✅ | |
| DNSimple | API_KEY |
✅ | ❌ | |
| Hetzner | API_KEY |
🚧 | ❌ | |
| PowerDNS | API_KEY:POWERDNS_IP |
gmysql-dnssec=yes in pdns.conf | ✅ | ✅ |
| Vultr | API_KEY |
✅ | ❌ |
Slave Zone Support
Different DNS providers handle slave (secondary) zones differently. BIND9 and PowerDNS require explicit slave configuration, meaning you must manually add the slave servers to your $config array for them to sync from the master. This involves passing the necessary API details, such as apikey_nsX and bindip_nsX for BIND9 or powerdnsip_nsX for PowerDNS. In contrast, cloud-based DNS providers handle replication automatically, so there is no need to configure slave servers manually. Once a zone is added, it is automatically synchronized across their global infrastructure without additional setup.
BIND9 Example
$config = [ 'apikey' => 'masterUser:masterPass', // Master API Key 'bindip' => '192.168.1.100', // Master BIND9 server IP // Slave 1 (NS2) 'apikey_ns2' => 'slaveUser1:slavePass1', 'bindip_ns2' => '192.168.1.101', // You can add up to 13 slave servers (NS2 to NS13) ];
PowerDNS Example
$config = [ 'apikey' => 'master_api_key', // Master PowerDNS API Key 'powerdnsip' => '127.0.0.1', // Master PowerDNS IP 'pdns_master_ip' => '192.168.1.1', // Master IP for slaves to sync from // Slave 1 (NS2) 'apikey_ns2' => 'slave2_api_key', 'powerdnsip_ns2' => '192.168.1.2', // You can add up to 13 slave servers (NS2 to NS13) ];
Acknowledgements
We extend our gratitude to:
- QCloudns API Client which served as inspiration for our ClouDNS module.
📄 License
PlexDNS is licensed under the MIT License.
📩 Contributing
We welcome contributions! Feel free to submit issues or pull requests to improve the project.
- Fork the repository.
- Create a new branch.
- Make your changes and commit them.
- Submit a pull request.
📞 Support
For any issues, please open an issue on GitHub or contact us at help@namingo.org.
namingo/plexdns 适用场景与选型建议
namingo/plexdns 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 96 次下载、GitHub Stars 达 3, 最近一次更新时间为 2025 年 02 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 namingo/plexdns 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 namingo/plexdns 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 96
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 3
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2025-02-21