-
Notifications
You must be signed in to change notification settings - Fork 172
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
adding ip to .local dns zone #42
Comments
Sorry, I do not really get your question. |
@grandcat TBH I have no clue how this actually works in detail myself - but it is zeroconf/mdns based :) Just as an example: your boot up your RPi with octoprint installed and the machine is resolvable as I assume this Sorry for the vague issue - but does that make a little more sense now? |
This can be enabled by adding something like this to + case s.service.HostName: // host.local.
+ resp.Answer = s.appendAddrs(resp.Answer, ttl, ifIndex, false) The problem is zeroconf library doesn't really know if the hostname of the machine is already resolvable, so in some cases it might not make sense to respond to hostname questions (maybe you are on macOS and the system has a bonjour responder for the hostname, or you're on linux but have avahi-daemon installed also). |
@tmm1 Do you know a bit more about the resolving process? The code you provided looks like the zeroconf responds with the actual address (so there isn't even any DNS resolver involved). I would have thought I am really a little lost on finding the proper details on this. |
Maybe https://tools.ietf.org/html/rfc6762#section-5 is what you're looking for |
Announcing services is easy and works fine - but does
zerconf
also allow for adding IPs to the zones like e.g..local
? Similar to whatdnsmasq
does.The text was updated successfully, but these errors were encountered: