You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
用Pi-hole同款方案NOERROR+0.0.0.0倒是可以正常拦截,但是answer配置不了只返回IP,只能配置为
{
"rule_set": "geosite-reject",
"action": "predefined",
"rcode": "NOERROR",
"answer": "localhost. IN A 0.0.0.0"
}
如果直接填写 "answer": "0.0.0.0" 则会报错dns.rules[1].answer: (dns: not a TTL: "0.0.0.0" at line: 1:7 | json: cannot unmarshal string into Go value of type []option.DNSRecordOptions)
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
目前用DNS规则来拦截广告域名,如果直接返回NXDOMAIN,有些域名还是会一直疯狂请求,浪费移动设备电量
用Pi-hole同款方案NOERROR+0.0.0.0倒是可以正常拦截,但是answer配置不了只返回IP,只能配置为
{
"rule_set": "geosite-reject",
"action": "predefined",
"rcode": "NOERROR",
"answer": "localhost. IN A 0.0.0.0"
}
如果直接填写 "answer": "0.0.0.0" 则会报错dns.rules[1].answer: (dns: not a TTL: "0.0.0.0" at line: 1:7 | json: cannot unmarshal string into Go value of type []option.DNSRecordOptions)
The text was updated successfully, but these errors were encountered: