Skip to content
New issue

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

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

Already on GitHub? # to your account

[BUG]使用doggo查询mosdns的doh服务,空返回 #269

Closed
linusxiong opened this issue Jan 25, 2022 · 0 comments
Closed

[BUG]使用doggo查询mosdns的doh服务,空返回 #269

linusxiong opened this issue Jan 25, 2022 · 0 comments

Comments

@linusxiong
Copy link

出现了什么问题

简要描述一下问题的表现,以及执行了什么操作导致了问题的出现:
使用doggo查询mosdns的doh服务,空返回,并且查看日志发现报错empty question,怀疑是doggo的问题
#162 (comment)
之前说是doggo的doh查询是post请求的,不知道这里是不是这个问题

mosdns 的 log 记录:

2022-01-25T12:56:52.365-0500	info	coremain/run.go:104	loading plugin	{"tag": "inbound_server"}
2022-01-25T12:56:52.365-0500	info	coremain/run.go:104	loading plugin	{"tag": "noecs_inbound_server"}
2022-01-25T12:56:52.365-0500	info	coremain/run.go:104	loading plugin	{"tag": "if_sequence"}
2022-01-25T12:56:52.365-0500	info	coremain/run.go:104	loading plugin	{"tag": "query_is_local_domain"}
2022-01-25T12:56:52.365-0500	info	inbound_server	server/server.go:205	server started	{"proto": "udp", "addr": ":8053"}
2022-01-25T12:56:52.365-0500	info	noecs_inbound_server	server/server.go:205	server started	{"proto": "udp", "addr": ":53"}
2022-01-25T12:56:52.366-0500	info	inbound_server	server/server.go:205	server started	{"proto": "doh", "addr": ":60199"}
2022-01-25T12:56:52.468-0500	info	query_is_local_domain	query_matcher/query_matcher.go:105	domain matcher loaded	{"length": 69409}
2022-01-25T12:56:52.468-0500	info	coremain/run.go:104	loading plugin	{"tag": "query_is_non_local_domain"}
2022-01-25T12:56:52.481-0500	info	query_is_non_local_domain	query_matcher/query_matcher.go:105	domain matcher loaded	{"length": 35543}
2022-01-25T12:56:52.481-0500	info	coremain/run.go:104	loading plugin	{"tag": "response_has_local_ip"}
2022-01-25T12:56:52.678-0500	info	response_has_local_ip	response_matcher/response_matcher.go:92	ip matcher loaded	{"length": 11657}
2022-01-25T12:56:52.678-0500	info	coremain/run.go:104	loading plugin	{"tag": "ecs"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:104	loading plugin	{"tag": "set_bufsize"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:104	loading plugin	{"tag": "cache"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:104	loading plugin	{"tag": "change_ttl"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:104	loading plugin	{"tag": "forward_oversea"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:104	loading plugin	{"tag": "forward_domestic"}
2022-01-25T12:56:52.679-0500	info	coremain/run.go:42	all plugins are successfully loaded
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "_single_flight"}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "ecs"}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "cache"}
2022-01-25T12:56:56.080-0500	debug	cache	cache/cache.go:106	skipped	{"query": "empty question 0 1 我的ip"}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "if_sequence"}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:59	matching query context	{"query": "empty question 0 1 我的ip", "tag": "query_is_local_domain", "result": false}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:59	matching query context	{"query": "empty question 0 1 我的ip", "tag": "query_is_non_local_domain", "result": false}
2022-01-25T12:56:56.080-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "forward_domestic"}
2022-01-25T12:56:56.089-0500	debug	forward_domestic	upstream/transport.go:293	new connection established	{"id": 1}
2022-01-25T12:56:56.093-0500	debug	forward_domestic	bundled_upstream/bundled_upstream.go:96	response accepted	{"query": "empty question 0 1 我的ip", "from": "tls://dot.pub"}
2022-01-25T12:56:56.093-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "change_ttl"}
2022-01-25T12:56:56.093-0500	debug	handler/plugin_wrapper.go:59	matching query context	{"query": "empty question 0 1 我的ip", "tag": "response_has_local_ip", "result": false}
2022-01-25T12:56:56.093-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "forward_oversea"}
2022-01-25T12:56:56.094-0500	debug	forward_domestic	upstream/transport.go:293	new connection established	{"id": 2}
2022-01-25T12:56:56.144-0500	debug	forward_domestic	upstream/transport.go:293	new connection established	{"id": 3}
2022-01-25T12:56:56.154-0500	debug	forward_oversea	upstream/transport.go:293	new connection established	{"id": 4}
2022-01-25T12:56:56.155-0500	debug	forward_oversea	upstream/transport.go:293	new connection established	{"id": 5}
2022-01-25T12:56:56.164-0500	debug	forward_oversea	upstream/transport.go:293	new connection established	{"id": 6}
2022-01-25T12:56:56.165-0500	debug	forward_oversea	upstream/transport.go:293	new connection established	{"id": 7}
2022-01-25T12:56:56.185-0500	debug	forward_oversea	upstream/transport.go:417	connection closed	{"id": 4, "error": "EOF"}
2022-01-25T12:56:56.185-0500	warn	forward_oversea	bundled_upstream/bundled_upstream.go:91	upstream failed	{"query": "empty question 0 1 我的ip", "from": "tls://one.one.one.one", "error": "EOF"}
2022-01-25T12:56:56.185-0500	debug	forward_oversea	upstream/transport.go:417	connection closed	{"id": 5, "error": "EOF"}
2022-01-25T12:56:56.185-0500	warn	forward_oversea	bundled_upstream/bundled_upstream.go:91	upstream failed	{"query": "empty question 0 1 我的ip", "from": "tls://one.one.one.one", "error": "EOF"}
2022-01-25T12:56:56.194-0500	debug	forward_oversea	bundled_upstream/bundled_upstream.go:96	response accepted	{"query": "empty question 0 1 我的ip", "from": "tls://dns.google"}
2022-01-25T12:56:56.194-0500	debug	handler/plugin_wrapper.go:76	executing plugin	{"query": "empty question 0 1 我的ip", "tag": "change_ttl"}
2022-01-25T12:56:56.194-0500	debug	inbound_server	dns_handler/server_handler.go:121	entry returned	{"query": "empty question 0 1 我的ip", "status": "responded"}

环境

描述一下问题出现的环境,便于复现以更快定位问题。必须包含:

mosdns 的版本号(mosdns -v):3.1.0

操作系统和平台:debian 10

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

No branches or pull requests

1 participant