-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
Use Zeroconf technology (a.k.a. "Bonjour", a.k.a. "Avahi") for DNS-SD (DNS-based Service Discovery) #39
Comments
If Nextcloud would add bookmarks to my browser without asking me, my quote would look different. |
Hey, Epiphany already _DOES_ automatically add bookmarks without asking you (if your box has a running It adds those bookmarks into a special bookmark department called 'Nearby Sites'. These bookmarks are auto-created whenever there is an Avahi- or Bonjour- or other DNS-SD announcement seen over mDNS which advertises a But stay calm, please! Epiphany also auto-removes these same bookmarks again as soon as Avahi notices that the service has gone away from the network. It's not a bug, it's a feature -- and it is the whole purpose of Avahi:
If you don't believe me -- I guess you won't (because you do not seem to have consciously encountered DNS-SD in your network life so far) -- just run the following two commands in a terminal, in any order:
Now start Epiphany, open bookmarks, open the 'Nearby Sites' list, and admire your brand-new, auto-generated bookmark pointing to the Nextcloud web site. (If you want to see how it is automatically removed again, type Congratulations! You've just let Epiphany add a bookmark to your browser without asking you. Now your quote is due 😃 (Above commands tested on Debian Jessie 8.0: working. Tested on Raspian on a Pi3: first command [which creates name-to-IP resolution in |
I'll change my quote to:
But thats interesting, I learned something new and excuse my ignorance :) |
Autodiscovery for servers has very limited user base (those who have their server in their home network). If you want to have this you should set this up on the server independent from the nextcloud server. Thus I will close this ticket. |
You are completely wrong when stating that "autodiscovery for servers has a very limited user base". However, that is not your fault -- it's mine, since I don't seem to have been able to explain and put over my ideas in a way which makes them understandable. Also, you confused me by seemingly saying that the limited user base is equivalent to "those who have their server in their home network". Don't MOST Nextcloud users run their Nextcloud instances in their home network? How is that a limited user base then? |
Sorry for sounding a bit harsh here. Let me elaborate a bit more: I fully understand the use case. Nevertheless we are building an web app, that responds to incoming HTTP requests mainly. As far as I understood this mDNS is not based on HTTP, right? It's its own protocol. I doubt that there is an easy way for the PHP runtime (without additional configuration) to respond to those requests. Therefore I proposed to properly document how to configure the avahi daemon to make this service discoverable instead of putting this into our code and then require a lot of additional wiring to be able to respond to those requests. Does that make sense or am I completely wrong here? |
NC API internally uses WebDAV with extensions so instead of creation of a new DNS-SD key we may use an existing Then implement the search for such records in Nexcloud APP for iOS and Android. |
It should be easy-peasy for users + clients to discover an
ownNextCloud service instance available to them (either on LAN/WLAN, or on Wide Area LAN) and then connect to it._Quotes from the future:_
For this to work, the server component should be able to announce its presence and its exact services to potential clients. (Clients also need a way to take notice of these announcements.)
Exactly for this purpose mDNS (Multicast-based DNS, described in RFC 6762) and DNS-SD (DNS-based Service Discovery, described in RFC 6763) have been specified by the IETF.
Given that most Linux distributions nowadays provide Avahi out of the box, getting this server part of the equation to work should be super-easy. Merely taking advantage of the already existing
_webdav._tcp
,_http._tcp
and_https._tcp
service types should already go a long way.Utilizing the existing Apache module
mod_dnssd
(for more docu, see also here) should be a breeze. It may require an additional dependency to install: on Debian the package name islibapache2-mod-dnssd
.Finally, you may want to consider to register your own service types
_nextcloud._tcp
and_owncloud._tcp
(possibly with sub-types for_contacts
,_calendar
, etc.) with IANA here: www.iana.org/cgi-bin/usr-port-number.pl.See also _at the respective topic in the forums_, where further hints and some details have been discussed already.
The text was updated successfully, but these errors were encountered: