-
Notifications
You must be signed in to change notification settings - Fork 465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DNS resolution failure over TCP for ClickHouse in restricted UDP environment #1561
Comments
issue, is not related to Typical use case for DNS over TCP is big UDP responses Why did you restrict a standard DNS approach? |
You're correct, but we are working in an environment within an enterprise bank where custom DNS servers (coreDNS/kube-dns) or hosts are not permitted. This is part of a proof of concept (POC) where we aim to demonstrate our application, which utilizes ClickHouse. |
@Slach Do you have any suggestions for a potential workaround |
@arthurpassos could you suggest something about DNS over TCP in DNSResolver clickhouse-server? |
@arthurpassos Can you suggest any possible workarounds |
A setting that control the protocol could be introduced, something like ClickHouse uses
Options available:
|
I looked at the code again, poco lives in Editing the After that, one needs to make sure all DNS function calls specify the protocol based on the setting. Not very scalable, but it is the same thing with proxy support |
Description:
In our environment, DNS resolution over UDP is blocked, so we've configured pods to use TCP for DNS resolution instead. Testing with ping confirms that DNS resolution over TCP works, as the service name resolves successfully. However, ClickHouse is unable to resolve the service name over TCP and returns an error.
Steps to Reproduce:
ping chi-test-test-1-2.default.svc.cluster.local
Observed Behavior:
ClickHouse fails to resolve the service name over TCP, generating the following error:
However, running ping within the pod resolves the service name as expected:
Expected Behavior:
ClickHouse should be able to resolve service names over TCP in environments where UDP DNS is blocked, similar to the successful resolution observed with ping.
Additional Context:
Are there any known limitations with ClickHouse’s DNS resolver over TCP? Any recommendations or configurations to resolve this issue would be helpful.
The text was updated successfully, but these errors were encountered: