Skip to content

Experiencing network slowdowns when using CoreDNS to resolve hosts file. #4602

Answered by chrisohaver
jmuchovej asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
3 replies
@jmuchovej
Comment options

@chrisohaver
Comment options

@jmuchovej
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by jmuchovej
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants