I am looking at updating the upstream nss-mdns (though I am not the maintainer) and was wondering if the BSD portion of the code is still relevant. I noticed that the BSD support in the upstream code doesn't do anything without patches found in the ports tree.
Is there interest in upstreaming these ports packages? Or could I suggest removing the BSD code from upstream nss-mdns if mDNSResponder_nss is the new way for BSD?
Hello, just my 2c as the mDNSResponder_nss maintainer,
You can't really say that either is officially endorsed: despite its generic name, dns/nss_mdns is the Avahi plugin whereas dns/mDNSResponder_nss is for Apple's (reference) mDNSResponder implementation.
As of now, both can be installed concurrently on FreeBSD, but the user/packagers must choose which NSS module to install since they register a library with the same name in the filesystem and nsswitch.conf.
Note that to use mDNSResponder, I had to write some wrapper code. It was not proposed to upstream because I'm not sure on how to contact them, and I thought their interest would be low. Since that code relies on quite stable APIs, I'm happy with the situation for now :)
Thanks for the comment. It helps clarify my understanding of the situation.
With this understanding, here is my plan:
- propose to the new Avahi upstream (https://github.com/lathiat/avahi) that they become the definitive upstream for nss-mdns
- if they agree, then I will merge the existing nss-mdns repository into Avahi's
- then, unifdef many of the compile options, specifically the non-Avahi support which has been long deprecated
- fix up and merge the outstanding FreeBSD ports patches
- then finally look into adding some new functionality to nss-mdns
(Note that this is a best effort project on my part. It's mostly a yak-shave based on interest in fixing crbug.com/626377.)
If there is nothing else to discuss here, please close this bug. Thanks!
Follow https://github.com/lathiat/avahi/issues/64 for updates on the new potential upstream location of nss-mdns.
Thanks for opening this PR. I can help with testing FreeBSD stuff. ATM, I'm not using Avahi, as IIRC my experience with nss_mdns was not very great/reliable in the last few months, which is why I stopped using Avahi altogether.
I can double check to see if anything has changed, by this weekend, and confirm how good are the patches.
(In reply to Ashish SHUKLA from comment #4)
(In reply to Tobias Kortkamp from comment #5)
Sorry, didn't get to try it, other things in life took priority, and it got lost. I will make time for it, and will review it by February 14, 2019 when I get back to my FreeBSD computer.
If you get to try it, or are interested in maintaining it, then please let me know, I'll pass it on.