-
Notifications
You must be signed in to change notification settings - Fork 242
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
[BUG] Issues with DNS lookups from within the container #3643
Comments
Are you connected to a VPN ? Can you ping or dig from the VM itself to the address |
yes (VM), no (VPN) |
I tried the same on a full cluster and did not experience the problem there. Any more ideas what I can try on CRC to find out what the cause might be? |
haven't been able to repro. next week we have a very busy schedule, but will try to see if someone can test this. |
I am able to reproduce it and not know what is causing it, the only hint I get is from
I still get same error even I put higher |
Hi Praveen, did you get any updates on this? Thanks. |
@mmurhamm not yet, most of the team members are busy with RH summit, I might able to provide you some update next week. |
@mmurhamm Hi, quick update looks like busybox image uses different type of nslookup implementations and I tried different image like I did some experiments with podman in the VM
|
Recently we observed, dns messages from our dns service is not compress which sometime makes message size more than 512B and some client tools fails to process it. In this PR, message compression is used to reduce the length of DNS messages by removing duplicated information. - https://spathis.medium.com/how-dns-got-its-messages-on-diet-c49568b234a2 Without this PR if we query `dig secure-feeds-production-us-east-1-761931097553.s3.us-east-1.amazonaws.com` then message size is 803B and with this PR now it is 242B. - Issue: crc-org/crc#3643 Signed-off-by: Praveen Kumar <kumarpraveen.nitdgp@gmail.com>
Recently we observed, dns messages from our dns service is not compress which sometime makes message size more than 512B and some client tools fails to process it. In this PR, message compression is used to reduce the length of DNS messages by removing duplicated information. - https://spathis.medium.com/how-dns-got-its-messages-on-diet-c49568b234a2 Without this PR if we query `dig secure-feeds-production-us-east-1-761931097553.s3.us-east-1.amazonaws.com` then message size is 803B and with this PR now it is 242B. - Issue: crc-org/crc#3643 Signed-off-by: Praveen Kumar <kumarpraveen.nitdgp@gmail.com>
Updating to containers/gvisor-tap-vsock@b79db04 which resolve crc-org#3643 issue.
@praveenkumar Hi, thanks for the pointer. I ran the dnsutils container but the nslookup command fails again: Server: 10.217.4.10 I am running this on crc VM, not podman VM. I have upgraded crc to latest version but result is the same for both busybox and dnsutils versions of nslookup - they just won't resolve this name. I've also added an external DNS to crc config but that did not change things either. crc version: crc status: crc config view:
|
@praveenkumar, in addition: the use of busybox is not required, this was just a solution to test recommended by the vendor (Sysdig), like you suggested the use of dnsutils. The actual image that needs to resolve that host name is based on Red Hat 8.8. And it is still not resolving. |
there is an issue with fragmenting/truncation. the lookup of that particular address uses >512bytes for the response. this means it won't fit a single reply... we are still looking why this occurs. |
Updating to containers/gvisor-tap-vsock@b79db04 which resolve crc-org#3643 issue.
Updating to containers/gvisor-tap-vsock@b79db04 which resolve #3643 issue.
Can you give more details about this image? What are you using for the DNS resolution on this image? |
I can confirm that this issue has been fixed with v2.22 of crc. The Sysdig Registry Scanner now runs fine. |
Hi Christophe,
Red Hat have fixed the issue in v2.22 of crc. Sysdig registry scanner – the image in question – now runs fine on local OpenShift.
Fixed DNS lookup from within containers
Previously, DNS messages from Red Hat OpenShift Local DNS service could exceed 512B, and some clients might fail to process the message. With this update, DNS messages are compressed, and container can successfully process DNS messages.
#3643
Mit freundlichen Grüßen,
Martin W. Murhammer, MSc
Executive Architect
IBM Security
+43 664 6185769
***@***.***
IBM Österreich Internationale Büromaschinen Gesellschaft m.b.H.
Sitz: Wien
Firmenbuchgericht: Handelsgericht Wien, FN 80000y
From: Christophe Fergeau ***@***.***>
Sent: Monday, 12 June 2023 14:18
To: crc-org/crc ***@***.***>
Cc: Martin Murhammer ***@***.***>; Mention ***@***.***>
Subject: [EXTERNAL] Re: [crc-org/crc] [BUG] Issues with DNS lookups from within the container (Issue #3643)
The actual image that needs to resolve that host name is based on Red Hat 8. 8. And it is still not resolving. Can you give more details about this image? What are you using for the DNS resolution on this image? — Reply to this email directly,
ZjQcmQRYFpfptBannerStart
This Message Is From an External Sender
This message came from outside your organization.
ZjQcmQRYFpfptBannerEnd
The actual image that needs to resolve that host name is based on Red Hat 8.8. And it is still not resolving.
Can you give more details about this image? What are you using for the DNS resolution on this image?
—
Reply to this email directly, view it on GitHub<#3643 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AL742PKCPGJWZPRXWTFGVXDXK4CGFANCNFSM6AAAAAAX3JA6JA>.
You are receiving this because you were mentioned.Message ID: ***@***.***>
|
General information
crc setup
before starting it (Yes/No)? YesCRC version
CRC status
CRC config
Host Operating System
Steps to reproduce
(this (and other) container's /etc/resolv.conf points to dns-default service IP)
both names are resolved
Expected
both names should be resolved from within a container
Actual
resolving the amazon s3 link fails:
Server: 10.217.4.10
Address: 10.217.4.10:53
Non-authoritative answer:
*** Can't find secure-feeds-production-us-east-1-761931097553.s3.us-east-1.amazonaws.com: No answer
resolving other names works:
Server: 10.217.4.10
Address: 10.217.4.10:53
Non-authoritative answer:
Non-authoritative answer:
Name: cnn.com
Address: 151.101.195.5
Name: cnn.com
Address: 151.101.3.5
Name: cnn.com
Address: 151.101.67.5
Name: cnn.com
Address: 151.101.131.5
Logs
I'll follow up with the below later if needed, as I need to keep the cluster alive for another purpose for a while ...
Before gather the logs try following if that fix your issue
Please consider posting the output of
crc start --log-level debug
on http://gist.github.com/ and post the link in the issue.The text was updated successfully, but these errors were encountered: