GNOME Bugzilla – Bug 332634
Avahi backend fails to resolve pseudo local services
Last modified: 2018-08-17 13:51:05 UTC
gnome_vfs_dns_sd_resolve_sync fails with GNOME_VFS_ERROR_HOST_NOT_FOUND when resolving pseudo local services (avahi-publish -s 'Remote Terminal on somewhere' _ssh._tcp 22 --host=somewhere.com). Appears like the this happens, because gnome_vfs_dns_sd_resolve_sync calls avahi_service_resolver_new with the AVAHI_LOOKUP_USE_MULTICAST flag. This flag causes avahi to do local multicast lookups only, whereas resolving the hostname for the pseudo local service might require an unicast lookup.
Created attachment 60161 [details] [review] My suggestion for fixing that bug
commited. thanks.
Hmm, this is not fixed as it appaeras. There are still some occurences of AVAHI_LOOKUP_USE_MULTICAST in the sources.
The fix is easy, BTW. Just replace AVAHI_LOOKUP_USE_MULTICAST by 0 everywhere.
gnome-vfs got deprecated in 2008. gnome-vfs is not under active development anymore and had its last code changes in 2011. Its codebase has been archived: https://gitlab.gnome.org/Archive/gnome-vfs/commits/master gio (in glib) and gvfs are its successors. See https://developer.gnome.org/gio/stable/ch33.html and https://people.gnome.org/~gicmo/gio-migration-guide/ for porting info. Closing this report as WONTFIX as part of Bugzilla Housekeeping to reflect reality. Feel free to open a task in GNOME Gitlab if the issue described in this task still applies to a recent + supported version of glib/gio/gvfs. Thanks!