Skip to content
This repository has been archived by the owner on Jul 11, 2023. It is now read-only.

add an option to default to TCP dns queries #63

Open
Tieske opened this issue Dec 9, 2018 · 3 comments
Open

add an option to default to TCP dns queries #63

Tieske opened this issue Dec 9, 2018 · 3 comments

Comments

@Tieske
Copy link
Member

Tieske commented Dec 9, 2018

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
Copy link
Member Author

Tieske commented Mar 6, 2019

This requires TCP support from the resty dns lib. See openresty/lua-resty-dns#40

@creslinux
Copy link

creslinux commented Mar 1, 2020

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.

hashicorp/consul#376

@creslinux
Copy link

Made a PR for documentation clarification. #1835
Kong/docs.konghq.com#1835

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants