Skip to content
Contents
GuidesOpenWrt

OpenWrt responds by IP but hostname.local fails: check umdns on the LAN

Start from uMdns's network listening, and within the same LAN, query hostnames. Handle mDNS no-response and inability to access the management web page separately.

First, connect the computer to the router's LAN port so both devices are on the same network segment. .local is typically resolved by mDNS on the local link; the computer's ability to resolve public domain names does not prove it can receive mDNS responses sent by the router.

Determine the name to be asked, and who will respond

On the wired SSH terminal of the router, read the hostname, service status, and network listening:

uci get 'system.@system[0].hostname'
/etc/init.d/umdns status
uci show umdns
ubus call network.interface.lan status

If the service script does not exist, first verify that the current image includes umdns. The upstream configuration example lists lan; the running device may have modified this. If the resolved hostname is router, then run dns-sd -G v4v6 router.local on a Mac within the same LAN, or run avahi-resolve -n router.local on a Linux machine installed with Avahi. Use Ctrl-C to terminate the Mac query.

Name resolution and management services to be separately verified

After obtaining the address, verify it against the router interface's address; if the address matches but the web page fails to load, investigate the management service, protocol, and port settings. If no solution is found, first check whether the client supports mDNS, wireless client isolation, and service-specific network selection. Only after confirming name resolution within the same LAN should you determine whether cross-VLAN discovery is actually required. Upon test completion, retain the original guest isolation setting; for name resolution validation alone, no UDP 5353 opening to WAN is necessary.

Reference

Related guide · Fix AirPlay across OpenWrt VLANs by testing discovery and playback

Explore hardware

Comments