←back to thread

189 points thunderbong | 2 comments | | HN request time: 0.612s | source
1. franga2000 ◴[] No.41416403[source]
I would love something like this integrated with OpenWRT so it can also get the DHCP hostname. This is usually the most useful bit of information, but the hardest one to get if you're not the router.
replies(1): >>41417130 #
2. tomn ◴[] No.41417130[source]
OpenWrt's dnsmasq will serve PTR records corresponding to DHCP leases, so you can use reverse DNS lookups. Use something like:

  dig -x ip_address_here
For me it would be ideal if the prometheus exporter would expose the actual DHCP leases, but it doesn't seem to by default.