Ning icon indicating copy to clipboard operation
Ning copied to clipboard

Display reverse DNS

Open bt90 opened this issue 3 years ago • 4 comments

Ning currently only displays IP, MAC and manufacturer. It would be handy to also execute reverse DNS lookups for all discovered IPs. The local router usually has them registered with a more recognizeable device name.

Obviously this should only be done if the current DNS server being used has a local IPv4/IPv6 address.

This might also partly solve https://github.com/csicar/Ning/issues/34

bt90 avatar Jan 03 '22 08:01 bt90

That's a great idea. I'd love ti have that.

Also this should not be too hard to implement

csicar avatar Jan 19 '22 12:01 csicar

Relevant places in the code:

  • probably add a reverse DNS here: https://github.com/csicar/Ning/tree/master/app/src/main/java/de/csicar/ning/scanner
  • call the reverse DNS scanner, if the ip is reachable here: https://github.com/csicar/Ning/blob/master/app/src/main/java/de/csicar/ning/ScanRepository.kt#L75
  • call updateServiceName (https://github.com/csicar/Ning/blob/master/app/src/main/java/de/csicar/ning/Dao.kt#L101) to save the new name to the db

csicar avatar Jan 20 '22 10:01 csicar

i give this a +1, also make sure that it is working together with tools for dns based blocking (devices dns server(s) differ from dhcp provided/default gw) like DNS66. So allways use the matching local dns for the given interface (or even try all of them together with the ip of the default gw and dhcp server)

nanderer avatar Mar 07 '22 09:03 nanderer

I came here from Fing, which got overloaded for my simple use-case of "Finding that one new IOT device in my home". Being able to recognize the existing devices by their rDNS names is essential for me, so I'll give Ning another look once this has been added.

Zefiro avatar Nov 04 '23 18:11 Zefiro