Experiencing network slowdowns when using CoreDNS to resolve hosts file. #4602
-
I put together a container that uses CoreDNS to resolve ZeroTier peers ahead of all other domains. However, as someone not at all versed in DNS architecting/etc. I believe I've made some mistakes that are the cause of network slowdowns. BackgroundHere's the repository: https://github.com/jmuchovej/zerodns Specifically, here's a copy-paste of the
ZeroDNS itself just generates the In my own ZeroDNS setup, I have about 24 entries in Something that might be worth noting is that
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Add the loop plugin to the corefile to see if you have a forwarding loop. With loopback addresses like |
Beta Was this translation helpful? Give feedback.
-
In response the the OP questions... If all of your hosts fall into known predictable zones (and nothing else is in those zones), then you could use the file plugin. I suspect the file plugin is more performant than hosts (map vs tree) - but I don't know for sure, and it might not be for a short list of hosts. Hosts is much easier to use than file, the latter requiring a significantly more verbose dns zone file. |
Beta Was this translation helpful? Give feedback.
In response the the OP questions...
If all of your hosts fall into known predictable zones (and nothing else is in those zones), then you could use the file plugin. I suspect the file plugin is more performant than hosts (map vs tree) - but I don't know for sure, and it might not be for a short list of hosts. Hosts is much easier to use than file, the latter requiring a significantly more verbose dns zone file.
Even if you stick with the hosts plugin, the Corefile in 2 would theoretically help, since it would only check hosts for those zones. I say theoretically, because if the list of hosts is short, then it might not amount to a significant portion of the entire DNS transaction.