增加DNSSEC验证支持

This commit is contained in:
Alex Yang
2025-12-16 00:43:34 +08:00
parent 87a05bfb6d
commit 0b365e6dfe
20 changed files with 218525 additions and 61 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +0,0 @@
# 本地规则文件
# 格式:域名
# 例如example.com

View File

@@ -1,5 +1,5 @@
{
"blockedDomainsCount": {},
"resolvedDomainsCount": {},
"lastSaved": "2025-12-16T00:19:35.870635305+08:00"
"lastSaved": "2025-12-16T00:43:01.950520577+08:00"
}

View File

@@ -1,43 +1,107 @@
{
"stats": {
"Queries": 4,
"Blocked": 0,
"Allowed": 4,
"Errors": 0,
"LastQuery": "2025-12-16T00:18:12.220440621+08:00",
"AvgResponseTime": 62,
"TotalResponseTime": 248,
"Queries": 118,
"Blocked": 16,
"Allowed": 13,
"Errors": 2,
"LastQuery": "2025-12-16T00:29:26.93585524+08:00",
"AvgResponseTime": 59.66101694915254,
"TotalResponseTime": 7040,
"QueryTypes": {
"A": 2,
"AAAA": 2
"A": 61,
"AAAA": 56,
"NS": 1
},
"SourceIPs": {
"10.35.10.11": true,
"10.35.10.78": true
},
"CpuUsage": 38.88888888888889
"CpuUsage": 8.731756416708606
},
"blockedDomains": {
"example.com": {
"Domain": "example.com",
"Count": 4,
"LastSeen": "2025-12-16T00:24:02.487540915+08:00"
},
"push-rtmp-f5-enc.douyincdn.com": {
"Domain": "push-rtmp-f5-enc.douyincdn.com",
"Count": 1,
"LastSeen": "2025-12-16T00:29:23.706753775+08:00"
},
"push-rtmp-vr-l11.douyincdn.com": {
"Domain": "push-rtmp-vr-l11.douyincdn.com",
"Count": 1,
"LastSeen": "2025-12-16T00:29:26.936331624+08:00"
},
"so.com.amazehome.xyz": {
"Domain": "so.com.amazehome.xyz",
"Count": 10,
"LastSeen": "2025-12-16T00:23:16.05805465+08:00"
}
},
"blockedDomains": {},
"resolvedDomains": {
"": {
"Domain": "",
"Count": 1,
"LastSeen": "2025-12-16T00:20:54.619863811+08:00"
},
"example.com": {
"Domain": "example.com",
"Count": 2,
"LastSeen": "2025-12-16T00:18:12.24881751+08:00"
"LastSeen": "2025-12-16T00:20:26.840328865+08:00"
},
"example.com.1.amazehome.xyz": {
"Domain": "example.com.1.amazehome.xyz",
"Count": 2,
"LastSeen": "2025-12-16T00:24:06.45881199+08:00"
},
"example.com.amazehome.xyz": {
"Domain": "example.com.amazehome.xyz",
"Count": 2,
"LastSeen": "2025-12-16T00:18:12.186149491+08:00"
"LastSeen": "2025-12-16T00:20:26.753123844+08:00"
},
"pull-x4-q5-tsl.douyincdn.com": {
"Domain": "pull-x4-q5-tsl.douyincdn.com",
"Count": 1,
"LastSeen": "2025-12-16T00:20:33.570724485+08:00"
},
"so.com": {
"Domain": "so.com",
"Count": 2,
"LastSeen": "2025-12-16T00:21:54.173952653+08:00"
},
"so.com.amazehome.xyz": {
"Domain": "so.com.amazehome.xyz",
"Count": 2,
"LastSeen": "2025-12-16T00:21:54.1289594+08:00"
},
"www.example.com": {
"Domain": "www.example.com",
"Count": 1,
"LastSeen": "2025-12-16T00:21:10.765830844+08:00"
}
},
"clientStats": {
"10.35.10.11": {
"IP": "10.35.10.11",
"Count": 3,
"LastSeen": "2025-12-16T00:29:26.935860648+08:00"
},
"10.35.10.78": {
"IP": "10.35.10.78",
"Count": 4,
"LastSeen": "2025-12-16T00:18:12.220444434+08:00"
"Count": 115,
"LastSeen": "2025-12-16T00:24:06.558072687+08:00"
}
},
"hourlyStats": {},
"dailyStats": {},
"monthlyStats": {},
"lastSaved": "2025-12-16T00:19:35.868446298+08:00"
"hourlyStats": {
"2025-12-16-00": 16
},
"dailyStats": {
"2025-12-16": 16
},
"monthlyStats": {
"2025-12": 16
},
"lastSaved": "2025-12-16T00:33:23.859683296+08:00"
}

3
data/test_hosts.txt Normal file
View File

@@ -0,0 +1,3 @@
# Hosts文件
# 格式IP 域名
# 例如127.0.0.1 localhost

3
data/test_rules.txt Normal file
View File

@@ -0,0 +1,3 @@
# 本地规则文件
# 格式:域名
# 例如example.com

View File

@@ -0,0 +1,5 @@
{
"blockedDomainsCount": {},
"resolvedDomainsCount": {},
"lastSaved": "2025-12-16T00:38:44.046867267+08:00"
}

37
data/test_stats.json Normal file
View File

@@ -0,0 +1,37 @@
{
"stats": {
"Queries": 1,
"Blocked": 0,
"Allowed": 1,
"Errors": 0,
"LastQuery": "2025-12-16T00:38:14.408835937+08:00",
"AvgResponseTime": 6,
"TotalResponseTime": 6,
"QueryTypes": {
"A": 1
},
"SourceIPs": {
"127.0.0.1": true
},
"CpuUsage": 8.270676691729323
},
"blockedDomains": {},
"resolvedDomains": {
"google.com": {
"Domain": "google.com",
"Count": 1,
"LastSeen": "2025-12-16T00:38:14.416155945+08:00"
}
},
"clientStats": {
"127.0.0.1": {
"IP": "127.0.0.1",
"Count": 1,
"LastSeen": "2025-12-16T00:38:14.408844699+08:00"
}
},
"hourlyStats": {},
"dailyStats": {},
"monthlyStats": {},
"lastSaved": "2025-12-16T00:38:44.043395448+08:00"
}