diff --git a/docs/migration.md b/docs/migration.md index 50a0655f..86074ac7 100644 --- a/docs/migration.md +++ b/docs/migration.md @@ -351,14 +351,15 @@ DNS servers are refactored for better performance and scalability. ```json { "dns": { - "servers": [ + "rules": [ { - "type": "predefined", - "responses": [ - { - "rcode": "REFUSED" - } - ] + "domain": [ + "example.com" + ], + // other rules + + "action": "predefined", + "rcode": "REFUSED" } ] } @@ -1187,4 +1188,4 @@ which will disrupt the existing `process_path` use cases in Windows. } } } - ``` \ No newline at end of file + ``` diff --git a/docs/migration.zh.md b/docs/migration.zh.md index 950e5170..3a4dde7f 100644 --- a/docs/migration.zh.md +++ b/docs/migration.zh.md @@ -351,14 +351,15 @@ DNS 服务器已经重构。 ```json { "dns": { - "servers": [ + "rules": [ { - "type": "predefined", - "responses": [ - { - "rcode": "REFUSED" - } - ] + "domain": [ + "example.com" + ], + // 其它规则 + + "action": "predefined", + "rcode": "REFUSED" } ] }