Replies: 1 comment 2 replies
-
just a quick note, |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi @thediveo
I am writing this with understanding that it might not be the issue with edgeshark, but in hope that your vast linux networking knowledge might shed some light on the problem.
As you know, we have an army of networking folks who use edgeshark with containerlab. It works flawlessly on linux, but there is a quirk I am battling with on MacOS.
Let me explain the setup that I am running.
A MacOS M1 macbook is running a linux/arm64 VM orchestrated by the magnificent orbstack.dev where I am running containers and edgeshark.
When orbstack creates a linux/arm64 VM on macOS it does some magic so that a VM gets a local DNS resolution in the form of
<vmname>.orb.local
. I have no idea how this resolver works, but the outcome of this is that I can type in my browserhttp://clab.orb.local:5001
(whereclab
is the vm hostname) and I get to see the edgeshark UI.So far so good. The problem starts when I try to start the capture, this is where I get this error:
Now, 100.100.100.100:53 is the DNS resolver that is set on my macOS and this resolver has no notion of
orb.local
zone, as expected, since it is a global resolver.But I wonder why the extcap component does not use the same resolver procedure as, say,
ping
does or a browser, which somehow gets to know that whenorb.local
zone is concerned, it needs to be resolved not via a global DNS resolver.Apologies if this is all not related to edgeshark at all =(
PS1: I remember that you're not a macOS user, but maybe for others who would want to dive deeper into the orbstack ways of doing networking for their machines this article might be useful https://docs.orbstack.dev/architecture#network
PS2: if I add the IP<->name pair to the /etc/hosts on my mac, the extpipe program is able to resolve the DNS name just fine.
Maybe as a workaround I will have to do that manual static hosts entry each time I provision a new VM if there are no better alternatives.
Beta Was this translation helpful? Give feedback.
All reactions