Writing a Python program for my PiZeroW to scan and inventory my home local, internal network. I can easily iterate though the 256 internal DHCP available IP addresses (some assigned, some not), but cannot figure out what library utility to use to get hostname, given an IP address (reverse DNS).
I know how to do this for IP's that are Internet-addressable, but here I am working with my local, internal, non-Internet-addressable IP's. When I use PING on an internal hostname it returns the internal IP address, so somehow PING is able to look this up on my DHCP server. Looking for recommendations how to do this with a utility in the shell, or better inside a Python program. Thanks!