smartdns icon indicating copy to clipboard operation
smartdns copied to clipboard

请问支持只处理a和aaaa查询吗?其他所有的都reject

Open stonegr opened this issue 5 months ago • 6 comments

需求应用场景 请问支持只处理a和aaaa查询吗?其他所有的都reject 建议的方案 已尝试以下配置但无效 force-qtype-SOA 1-65535 force-qtype-SOA-exclude 1 force-qtype-SOA-exclude 28 force-qtype-SOA-exclude 15

设备信息

  1. 设备信息(CPU,厂家)

  2. 固件信息

stonegr avatar Jun 16 '25 05:06 stonegr

force-qtype-SOA 2 5 6 12 13 15 16 17 18 24 25 29 33 35 36 37 39 41 42 43 44 45 46 47 48 49 50 51 52 53 55 59 60 61 62 63 64 65 108 109 249 250 251 252 255 256 257 32768 32769

其中常见的 2 5 6 12 15 16 33 41 55 65 256 就差不多了

PikuZheng avatar Jun 16 '25 10:06 PikuZheng

force-qtype-SOA 2 5 6 12 13 15 16 17 18 24 25 29 33 35 36 37 39 41 42 43 44 45 46 47 48 49 50 51 52 53 55 59 60 61 62 63 64 65 108 109 249 250 251 252 255 256 257 32768 32769

其中常见的 2 5 6 12 15 16 33 41 55 65 256 就差不多了

感谢,我上面尝试的配置 force-qtype-SOA 1-65535 force-qtype-SOA-exclude 1 force-qtype-SOA-exclude 28 force-qtype-SOA-exclude 15

是gpt给我的回复,曾经是有这样的配置吗

stonegr avatar Jun 16 '25 14:06 stonegr

force-qtype-SOA-exclude 1 没有这个语法。要想这样写的话

force-qtype-SOA 2-32769
force-qtype-SOA -,28
force-qtype-SOA -,15

PikuZheng avatar Jun 16 '25 14:06 PikuZheng

force-qtype-SOA-exclude 1 没有这个语法。要想这样写的话

force-qtype-SOA 2-32769
force-qtype-SOA -,28
force-qtype-SOA -,15

上面的配置就是只处理qtype 1 15 28,对吗? 谢谢

stonegr avatar Jun 16 '25 15:06 stonegr

force-qtype-SOA-exclude 1 没有这个语法。要想这样写的话

force-qtype-SOA 2-32769
force-qtype-SOA -,28
force-qtype-SOA -,15

这个是否可写成呢 force-qtype-SOA -,1,28,15

Image

stonegr avatar Jun 16 '25 15:06 stonegr

这个不对,已经看文档解决了,谢谢 force-qtype-SOA -,1,28,15

force-qtype-SOA 2-32769 force-qtype-SOA -,28 force-qtype-SOA -,15 这个可以

stonegr avatar Jun 16 '25 15:06 stonegr