Kong / lua-resty-dns-client

Lua DNS client, load balancer, and utility library
http://kong.github.io/lua-resty-dns-client/topics/README.md.html
Apache License 2.0
152 stars 52 forks source link

add an option to default to TCP dns queries #63

Open Tieske opened 5 years ago

Tieske commented 5 years ago

dns queries are by default done using UDP, only when truncation happens it will fall back to TCP. Some tools will only return a limited number of entries for UDP queries (Consul for example).

By using TCP we could get the full list and do proper loadbalancing over all of them.

Original request: https://discuss.konghq.com/t/seeking-additional-details-around-dns-resolution/1997/4?u=tieske

Tieske commented 5 years ago

This requires TCP support from the resty dns lib. See https://github.com/openresty/lua-resty-dns/issues/40

creslinux commented 4 years ago

Hi, In and around this thread

consul has an option to return the truncate flag when the return payload will be greater than 512bytes. This should be standard compliant behaviour, but consul need the setting flagged to be so.

https://github.com/hashicorp/consul/pull/376

creslinux commented 4 years ago

Made a PR for documentation clarification. #1835 https://github.com/Kong/docs.konghq.com/pull/1835