-
Notifications
You must be signed in to change notification settings - Fork 163
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
mDNS not resolving when used in host field #353
Comments
Are you using binaries? Check the logs page at I'm not a DNS expert either, but if |
Yes I am using the binaries, both machines in my setup are Debian 12, in case that turns out to be relevant later. For a second I thought you meant the logs were in that path from the hub's working directory. 😁 Anyway, once I hit the relevant webpage, the error message in the log is this: I'll set up another example tomorrow (I've been moving hosts between subnets/vlans, etc) and see if I can't get some better info about what might be going on (especially why nmap/ping get resolved, but this call wasn't). Most of the hits I get online for the I'm sure it's going to end up being something about how my network responds - I'll probably end up comparing the network activity between beszel and nmap with wireshark. Thanks for all the help you're offering (I've been reading through some other folks' issues) and the nice-to-read documentation, this is a great utility that I was really pleased to have read about on the selfhosted sub-reddit a couple days ago. |
Is there a quick way to flush the log messages? My initial impression is that the mDNS query isn't sent out on the network at all. |
I found a reddit post that mentions it could be due to the pure Go DNS resolver. We don't build Beszel with cgo because we need to cross compile for a bunch of different platforms. So the agent would be using the pure Go resolver by default. https://www.reddit.com/r/golang/comments/xd8zr6/strange_behavior_of_programmatic_mdns_lookup_on/ The only way to test this theory would be to build the
Click the cog to open the "Logs settings" dialog, then set retention to zero. That should clear all existing logs. I think it will also show live events and not save them to the DB, but I haven't tested that.
Try pausing and unpausing the system from the table. |
Re-building the Hub does get the address resolution of .local to work, no compilation required for the agent. Looks like that answers the original question though: if mDNS support is needed then manual compile is the way to go. By the way, I'm not a webdev, didn't have go or node installed, etc - I do have some familiarity with makefiles, and the instructions for manual compile were very easy to follow. Seriously, well done on the documentation side of this project. I had some weird behavior, running |
I've been reading a little more and it seems from this golang issue that it might be the cross-compile in general, rather than the cgo flag. |
Thanks for the updates, and I appreciate the feedback on the docs. For native compilation we should be able to leave cgo enabled by default. I'll add Will do a bit more research on this when I can. |
Hi, I have an agent that won't connect.
I have a hub running with 1) an agent on the same machine (localhost) and 2) an agent on another machine in the same subnet - e.g 192.168.1.1/24.
I added both with 'host' field as .local, where is the corresponding output of
uname -n
.The hub is running fine, and the agent on the same machine (hostname1.local) shows up fine.
The agent on the second machine (hostname2.local) is marked as offline, unless I go into the Systems record and modify the host field to the current ipv4 address (192.168.1.x) then it pops up and shows data.
A few things I've tried:
ping hostname2.local
<- resolves and response time <5msnmap -sT -p45876 hostname2.local
<- resolves and openI have a fuzzy understanding of mDNS vs DNS, but seeing as the other two methods of testing a connection worked, I expected beszel-hub to handle it as well.
As I've subsequently been reading, using .local might not be a great idea, but it works well enough for many purposes.
The text was updated successfully, but these errors were encountered: