meta data for this page
  •  

hostname resolution

If OpenWRT is used as AP it doesn't know host names and show connected WIFi stations as ?. Possible workarounds:

  • add to /etc/ethers
  • using UCI
    • luci: add DHCP configuration:
      • AP only - DHCP is not used - Ignore interface checkbox is set on LAN interface
      • Network –> DHCP and DNS
        • Static Leases tab
          • add hostname with MAC address, but without IPv4 address - choose ignore
    • uci cli:
      uci add dhcp host
      uci set dhcp.@host[-1].name='my-pc'
      uci add_list dhcp.@host[-1].mac='28:AD:18:D8:81:F2'
      uci set dhcp.@host[-1].ip='ignore'