Replies: 2 comments
-
找到问题了, 是服务器不通的时候, 返回的是context deadline exceeded, 然后程序就不往下走了. 服务器能返回的时候, 程序按照逻辑会往下流动. |
Beta Was this translation helpful? Give feedback.
0 replies
-
不写返回语句就是了。 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
我用sequence模拟fallback,怎么都不成功, 请求大神指导帮助。
用途,某些内网域名先用内网DNS解析, 如果解析不成功再使用外网解析(内部域名内外网都可用,入口不同)
现在想先用10.66.60.22解析,不成功换119.29.29.29解析,内网解析没有问题。到外网的时候,结果都是在10.66这步结束了。程序不再流下去。
log如下:
2024-03-11T17:09:51.922+0800 WARN udp_server entry err {"query": {"uqid": 1, "client": "127.0.0.1", "qname": "s04.sdec.com.", "qtype": 1, "qclass": 1, "elapsed": "5.0131446s"}, "edes": [{"info_code": 0, "extra_text": "context deadline exceeded"}]}
2024-03-11T17:09:51.922+0800 WARN company_forward upstream error {"uqid": 1, "qname": "s04.sdec.com.", "qtype": 1, "qclass": 1, "upstream": "10.66.60.22", "error": "context deadline exceeded"}
2024-03-11T17:09:56.923+0800 WARN company_forward upstream error {"uqid": 2, "qname": "s04.sdec.com.", "qtype": 1, "qclass": 1, "upstream": "10.66.60.22", "error": "context deadline exceeded"}
2024-03-11T17:09:56.923+0800 WARN udp_server entry err {"query": {"uqid": 2, "client": "127.0.0.1", "qname": "s04.sdec.com.", "qtype": 1, "qclass": 1, "elapsed": "5.0002939s"}, "edes": [{"info_code": 0, "extra_text": "context deadline exceeded"}]}
Beta Was this translation helpful? Give feedback.
All reactions