Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

看到日志出现type2的类型,但不知道是啥日志 #1927

Open
maojianyou opened this issue Mar 7, 2025 · 5 comments
Open

看到日志出现type2的类型,但不知道是啥日志 #1927

maojianyou opened this issue Mar 7, 2025 · 5 comments

Comments

@maojianyou
Copy link

日志出现这种
query , type 2, time 2167ms, speed: -0.1ms, group default, result

目前知道的是
tpye 1 是 53的DNS请求
type 2
type 3

这种有对应日志,比如SOA的类型对应不,这样我需要开启那些需要的日志类型,比如SOA不不需要可以使用
force-qtype-SOA 28 65 禁用 Https 跟AAAA这种,避免日志产生大量不需要的日志
但我不知道具体对应关系,这个有文档不

@PikuZheng
Copy link
Contributor

https://en.wikipedia.org/wiki/List_of_DNS_record_types

type 2就是NS记录,是用来查一个域名注册在哪个域名服务器的

@maojianyou
Copy link
Author

https://en.wikipedia.org/wiki/List_of_DNS_record_types

type 2就是NS记录,是用来查一个域名注册在哪个域名服务器的
那我是不是可以使用force-qtype-SOA 28 65 2 给禁用掉,因为只需要A记录解析,NS是不是没有必要?

@maojianyou
Copy link
Author

maojianyou commented Mar 7, 2025

https://en.wikipedia.org/wiki/List_of_DNS_record_types

type 2就是NS记录,是用来查一个域名注册在哪个域名服务器的

force-qtype-SOA 28 65 2 我直接设置 了 NS 的2 但日志还是存在 type 2 的类型

@PikuZheng
Copy link
Contributor

force-qtype-soa 只是不会转发这个类型的请求到上游,并不是阻止了下游发来请求

@maojianyou
Copy link
Author

会转发这个类型的请求到上游,并不是阻止了下游发来请

那如果soa日志不打印这个信息,有办法不

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants