lan-mouse/src
Jon Kinney a42592ab05 fix(dns): resolve hostnames via the OS resolver instead of pure DNS
hickory_resolver's TokioResolver only consults /etc/resolv.conf and
queries upstream DNS servers — which means it can't see /etc/hosts,
mDNS (Avahi/Bonjour), NetBIOS, or anything else in the system's full
name-resolution stack. On a typical home LAN there's no DNS server
that knows about peer machine names, so users had to fall back to
typing IP addresses, which broke the moment they moved their setup
to a different network.

Swap to tokio::net::lookup_host, which calls getaddrinfo (or
GetAddrInfoEx on Windows). That walks /etc/nsswitch.conf on Linux
(picking up Avahi-resolved .local names, /etc/hosts, and DNS), uses
Bonjour for .local on macOS, and the full Windows resolver on
Windows. A Bonjour hostname like "JKMBP-M4-Max.local" now resolves
on every modern network without explicit configuration; the user
can carry their two machines between LANs and the connection still
finds them.

Drop the hickory-resolver dependency entirely — it's no longer
needed. ServiceError::Dns also goes away; lookup failures surface as
io::Error which is already covered by ServiceError::Io.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-06-14 23:31:48 +02:00
..
capture.rs fix(capture): release peer keys on release-bind 2026-04-29 22:59:43 +02:00
capture_test.rs feat: simplify and change configuration (#279) 2025-03-15 18:45:19 +01:00
client.rs feat: peer version exchange with soft-warn UI indicator 2026-06-14 22:59:26 +02:00
config.rs feat: peer version exchange with soft-warn UI indicator 2026-06-14 22:59:26 +02:00
connect.rs chore: cargo fmt for peer-version code 2026-06-14 22:59:26 +02:00
crypto.rs Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
dns.rs fix(dns): resolve hostnames via the OS resolver instead of pure DNS 2026-06-14 23:31:48 +02:00
emulation.rs fix(version-exchange): also store peer commit on the listen side 2026-06-14 22:59:26 +02:00
emulation_test.rs feat: simplify and change configuration (#279) 2025-03-15 18:45:19 +01:00
lib.rs Encryption and One-Way-Control (#200) 2024-11-09 13:54:43 +01:00
listen.rs fix(proto): tolerate undecodable peer datagrams instead of disconnecting 2026-06-14 22:59:26 +02:00
main.rs feat: peer version exchange with soft-warn UI indicator 2026-06-14 22:59:26 +02:00
service.rs fix(dns): resolve hostnames via the OS resolver instead of pure DNS 2026-06-14 23:31:48 +02:00