D. Hugh Redelmeier via talk wrote on 2024-02-26 22:43:

I'm starting to use .local.  So machines declare
their hostname and mDNS / bonjour gets to resolve name.local.  Neat.

I ought to look into using .local myself, instead of when I had DDNS running. Sounds interesting.


Tonight I'm creating an experimental NextCloud server.  Let's say it's
hostname is nc.

- ping nc.local works
- ssh nc.local works
- host nc.local works
- Firefox and even links cannot see nc.local.

Why is that?

I'm not sure, but I suspect somehow `ping`, `ssh`, and `host` avoid mDNS entirely.


For your situation to work, it appears you need to tweak your /etc/nsswitch.conf file:


https://superuser.com/questions/1417190/why-do-i-need-to-change-the-order-of-hosts-in-nsswitch-conf

https://askubuntu.com/questions/678372/chrome-and-firefox-can-not-resolve-the-same-host-name-dig-can


Basically, there should be a line which prioritizes mdns4_minimal over dns, similar to:

> hosts: files mdns4_minimal dns


---
Post to this mailing list [email protected]
Unsubscribe from this mailing list https://gtalug.org/mailman/listinfo/talk

Reply via email to