-
Notifications
You must be signed in to change notification settings - Fork 43
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
Broken subdomain resolution (eg. sub.domain.local) #64
Comments
Hi! Thanks for your detailed report. This is a known change in nss-mdns. You will need to use the non-minimal version of the code and also configure See https://github.com/lathiat/nss-mdns/blob/master/README.md#etcmdnsallow for more information. If this does not work for you, or if this is not flexible enough for your needs, please reopen the issue. |
I can confirm the "workaround" is doing fine. So configuring
Apple published the article this year (May 17, 2018) with the standard heuristics, so I would argue that the old (expected) behaviour takes precedence over the new one. Not for the unicast SOA heuristic, but for the two-label limit heuristic. As a compromise we could disable the two-label limit heuristic on the I would like to restore the original behaviour at this point somehow. |
We can implement the reverse lookup limiting functionality in non-MINIMAL configurations, to fix the comment in issue #46. The two-label limit heuristic was implemented in Mac OS X v10.5, released 2007-10-26, 10 years ago. As far as I know, these heuristics were documented around the time of release, and certainly before 2018. The oldest version of the URL saved at archive.org is from 2014. Probably the thing to do is to create a new config file that both MINIMAL and non-MINIMAL read identically and would let us precisely specify the configuration in all cases. The old /etc/mdns.allow could remain for compatibility for non-MINIMAL if the new file isn't present. |
I think #65 would address this issue. |
I was resolution problems with Avahi on an openSUSE 15.2 host trying to resolve a sumaform'ed Uyuni server: ``` opensuse # avahi-resolve -n uyuni.tf.local uyuni.tf.local 192.168.122.154 ping: uyuni.tf.local: Name or service not known PING 192.168.122.154 (192.168.122.154) 56(84) bytes of data. 64 bytes from 192.168.122.154: icmp_seq=1 ttl=64 time=0.245 ms ``` The problem disappears when I change Avahi configuration in the Uyuni host to use the first-level domain `local` (instead of `tf.local`). Turns out that in the newest version of `nss-mdns` (shipping with OpenSUSE 15.2), second-level `.local` domains must be explicitly allowed to be resolved in `/etc/mdns.allow` AND `mdns` (not `mdns_minimal`) must be used in `nsswitch.conf`. The latter is already covered in the troubleshooting, I took care of adding the former information into the docs. Upstream issue: avahi/nss-mdns#64 Upstream resolution (linked in sumaform docs): https://github.com/lathiat/nss-mdns/blob/master/README.md#etcmdnsallow
* Docs: add mdns.allow to troubleshooting section I was resolution problems with Avahi on an openSUSE 15.2 host trying to resolve a sumaform'ed Uyuni server: ``` opensuse # avahi-resolve -n uyuni.tf.local uyuni.tf.local 192.168.122.154 ping: uyuni.tf.local: Name or service not known PING 192.168.122.154 (192.168.122.154) 56(84) bytes of data. 64 bytes from 192.168.122.154: icmp_seq=1 ttl=64 time=0.245 ms ``` The problem disappears when I change Avahi configuration in the Uyuni host to use the first-level domain `local` (instead of `tf.local`). Turns out that in the newest version of `nss-mdns` (shipping with OpenSUSE 15.2), second-level `.local` domains must be explicitly allowed to be resolved in `/etc/mdns.allow` AND `mdns` (not `mdns_minimal`) must be used in `nsswitch.conf`. The latter is already covered in the troubleshooting, I took care of adding the former information into the docs. Upstream issue: avahi/nss-mdns#64 Upstream resolution (linked in sumaform docs): https://github.com/lathiat/nss-mdns/blob/master/README.md#etcmdnsallow
Hey there! First things first: thanks for maintaining the nss-mdns extension!
I found a regression between 0.10 and 0.14.1 regarding the subdomain resolution.
Unfortunately, I was affected by an Arch Linux package upgrade which directly upgraded
0.10-7 to 0.14.1-1 (x86_64), so I cannot bisect the initial broken version right now.
The issue happens only on subdomains, not regular domains. (test.local resolves properly,
while sub.test.local does not) Here comes a little demo session:
And with 0.14.1:
avahi-resolve
is working properly,ping
according to nss with nss-mdns not.The latter IP (10.0.0.140 is my host IP)
My
/etc/nsswitch.conf
looks like this:Which is working fine with the 0.10 version. I also tried to use the
mdns4
moduleinstead of the
mdns4_minimal
one, without effect.A regular avahi config for a subdomain in use looks like this (/etc/avahi/avahi-daemon.conf):
The text was updated successfully, but these errors were encountered: