Is there a better Linux command than nslookup for reverse IP address to domain searches?
I only found out about "conntrack" yesterday, so, I don't fully understand if there is a better way to find out all the IP addresses a household is using - but the gist of conntrack seems to be that my Ubiquiti Rocket M2 Linux rooftop WiFi transceiver (which is similar to your DSL or cable modem) reports in its /proc/net/nf_conntrack file, an ever-changing list of destination IP addresses of the form: dst=74.125.20.188 dst=173.208.193.106 dst=207.171.163.142 etc.
I can manually determine the domain name using any of a number of web-based lookup tools, e.g.,
But with a hundred at a time, it's probably better to run a script from the linux command line to awk out the IP addresses and then run a reverse IP lookup from the mini Linux on the rooftop radio.
Googling for how to run a reverse IP lookup from the command line for Linux, the most commonly suggested is /usr/bin/nslookup, e.g., $ nslookup 74.125.20.188 => pe-in-f188.1e100.net $ nslookup 173.208.193.106 => superbserver-online.us $ nslookup 207.171.163.142 => s3-1-w.amazonaws.com etc.
That's OK, but often it gives nothing useful.
Is there a better Linux command than nslookup for reverse IP address to domain searches?
Note: Unfortunately these commands are not available on the router: dig +noall +answer -x 74.125.20.188 host 74.125.20.188 getent hosts 74.125.20.188 nbstat -a 74.125.20.188 ping -a 74.125.20.188