devname: announce the LAN face with avahi on Linux, find the LAN address portably
lan_ip asks the kernel for the route source toward the mDNS group (then the default route) instead of parsing ifconfig, and accepts RFC 1918 only. Announcing goes through the platform: dns-sd -P on macOS, avahi-publish -a -R on Linux. Without an announcer (avahi missing or avahi-daemon down) the gate stays shut with a clear reason and no ssh probe; loopback names are untouched. The machine's own .local name is never re-announced, and names removed from the registry are withdrawn.
Showing
Please
register
or
sign in
to comment