| 8 Jul 2025 |
Charles | https://discourse.nixos.org/t/systemd-resolved-cant-resolve-mdns-local-names-avahi-can/60540/2?u=cobaltcause i tried this advice here which really seems like it should work, on 2 machines to attempt to publish and resolve, but it doesn't work | 20:32:18 |
K900 | It Depends(tm) | 20:32:27 |
K900 | The fun thing is that some applications will only talk to avahi | 20:32:31 |
Charles | hmm, do android and ios do mdns | 20:33:02 |
K900 | I think so | 20:34:06 |
Charles | neat | 20:34:31 |
Zhaofeng Li | I think apple is the one who made mdns "mainstream" in the first place | 20:34:52 |
Marie | even windows does mdns nowadays | 20:35:26 |
Zhaofeng Li | on the flip side, apple is bad at providing options that are not dependent on mdns 🙃 | 20:35:52 |
Charles | so do i have to set up avahi | 20:36:10 |
hexa | "bonjour" 👋 | 20:37:59 |
hexa | aka "zeroconf" | 20:38:10 |
hexa | * aka "zeroconf" 0️⃣ | 20:38:17 |
Charles | reverting the changes to networkmanager and systemd-resolved and adding
services.avahi = {
enable = true;
publish.enable = true;
publish.domain = true;
nssmdns4 = true;
};
works :/
| 20:47:42 |
Zhaofeng Li | just for resolving I don't think avahi is required, publishing yes | 20:48:51 |
Charles | https://www.freedesktop.org/software/systemd/man/latest/resolved.conf.html#MulticastDNS= | 20:50:31 |
Charles | systemd is supposed to be able to do it, it seems | 20:50:38 |
Zhaofeng Li |
Multicast DNS responder and resolver
huh interesting, so it can publish too
| 20:51:18 |
Charles | well, it says it can, but i can't get it to work | 20:51:50 |
Zhaofeng Li | there is resolvectl mdns but it's not very helpful apart from saying "yes" | 20:54:23 |
Charles | indeed | 20:54:32 |
Zhaofeng Li | maybe you need the whole SYSTEMD_LOG_LEVEL=debug shebang again | 20:54:55 |
Zhaofeng Li | for the networking stuff, trying to get systemd to tell you anything useful via the CLIs is usually futile 🫠 | 20:56:25 |
Charles | actually it seems like services.avahi.enable = true; is sufficient | 20:57:13 |
Charles | (i did not read the docs that hard) | 20:57:21 |
Charles | oh or maybe it isn't | 21:00:39 |
Zhaofeng Li | theoretically avahi shouldn't even be needed it seems, but alas for my use case CUPS doesn't seem to work with resolved for publishing | 21:00:40 |
Zhaofeng Li | The story is always like:
Me: networkctl reconfigure
networkctl: Success 🥰 Me: but it does nothing? networkctl status
networkctl: configured 👌
| 21:02:54 |
hexa | so, I'm sorry to say | 21:58:02 |
hexa | dhcp servers are as boring as they come once they work | 21:58:10 |