Neighbour hostnames under Status -> Routing

Hello!

I started using OpenWrt yesterday and it has breathed new life into my Netgear XR500 router. OpenWrt is far superior to NetDumaOS and the ability to customize my experience has been amazing.

I do have one minor caveat which I am now hoping for someone to advice me on. I noticed that I can see hostnames of devices in my network next to their IP and MAC-address in the DHCP lease table on the main overview page of the router. I would however prefer this to also be the case in the Status -> Routing table where I can see every IPv4 Neighbour to my router. Is it possible to somehow customize this table to be able to see neighbour's hostnames? Does anyone have any suggestions?

Best Regards.

Maybe you can find a luci plugin that does what you want.

Otherwise, the web files are here:

root@OpenWrt:~# find /www

Happy hacking!

You may want to edit the following file

/www/luci-static/resources/view/status/routes.js

And this file can help you getting Hostname-

/www/luci-static/resources/view/status/include/40_dhcp.js

What you have to do is to scrap the lines that find hostname from 40_dhcp.js and fit it in the routes.js file

As it is time consuming, you have to do it yourself.
Let me know if you succeed.
Good luck.

Sounds like a great idea. If you're unable to fix the code yourself (with the files @porshuram mentioned), you should look into creating an issue for new feature/improvement at https://github.com/openwrt/luci/.

Thanks for all the pointers!

I have managed to solve this somewhat using Microsoft Copilot guiding me through large steps of the process as I am a terrible coder. This solution includes using nmap to gather the necessary information and compiling them into the table.

This is what it currently looks like:

I abandoned the idea of putting it on the overview page and the routing mainview and put an entire new mainview instead. I am willing to share the code if anyone is curious.

1 Like

That looks amazing, nice work!

1 Like