Rework os resolver

Currently, os resolver not only handle A and AAAA records, but also does
it wrongly, since when it packs AAAA record to a dns.A record.

This commit reworks os resolver to make it works with all supported
record types.
This commit is contained in:
Cuong Manh Le
2022-12-22 02:22:35 +07:00
committed by Cuong Manh Le
parent e6d77e2586
commit e331a4113a
7 changed files with 561 additions and 150 deletions
+1 -1
View File
@@ -296,5 +296,5 @@ func ttlFromMsg(msg *dns.Msg) uint32 {
var osUpstreamConfig = &ctrld.UpstreamConfig{
Name: "OS resolver",
Type: "os",
Type: ctrld.ResolverTypeOS,
}