diff --git a/readme.md b/readme.md index 1d346d1..269cc2c 100644 --- a/readme.md +++ b/readme.md @@ -4,6 +4,10 @@ Webman的DNS服务器插件,可以实现Webman启动时运行一个DNS服务 > 注意:默认为udp53端口,需要ROOT权限 +[Github](https://github.com/ywnsya/webman-dns) + +[LaysenseRepo](https://git.laysense.com/enoch/Webman-Dns) + --- ## 支持的DNS类型: @@ -26,7 +30,6 @@ Webman的DNS服务器插件,可以实现Webman启动时运行一个DNS服务 composer require laysense/dns ``` - ## 配置 > 配置文件位于 /config/plugin/laysense/dns/process.php @@ -43,7 +46,6 @@ return [ ]; ``` - ## 使用 > 为了方便您的使用,本插件(不要脸地)导入了一个Controller @@ -79,7 +81,7 @@ class DnsController #此处请根据业务需要,通过判断$name和$rip返回正确的数据 #详情请参见 https://github.com/ywnsya/workerman-dns 尤其是 https://github.com/ywnsya/Workerman-DNS/blob/master/start.php 中的用法 - + $send['detail']='dns.laysense.com'; $send['ttl']=30; $send['type']='PTR'; @@ -94,10 +96,8 @@ class DnsController } ``` - 具体的使用方式请参照 [Workerman-DNS](https://www.workerman.net/a/1439) ([Github](https://github.com/ywnsya/workerman-dns)) 下的start.php - ## 赞助(我不要脸) ![1671360565549](image/readme/1671360565549.png)