Electronics Repair (sci.electronics.repair) Discussion of repairing electronic equipment. Topics include requests for assistance, where to obtain servicing information and parts, techniques for diagnosis and repair, and annecdotes about success, failures and problems.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 12
Default Is nslookup the best there is for reverse IP address to domainname?

Clément Durand wrote, on Tue, 12 Aug 2014 02:25:20 +0000:

That's OK, but often it gives nothing useful.


nslookup is ok, but most of the time, nslookup reports nothing.



tail /proc/net/nf_conntrack|awk '{print $7}'
src=74.125.103.57
src=157.55.135.18
src=173.194.25.148
src=23.235.255.22


tail /proc/net/nf_conntrack|awk '{print $7}'|sed -e 's/src=/nslookup /'
nslookup 74.125.103.57
nslookup 157.55.135.18
nslookup 173.194.25.148
nslookup 23.235.255.22

tail /proc/net/nf_conntrack|awk '{print $7}'|sed -e 's/src=/nslookup /'/tmp/script
chmod u+x /tmp/script
/tmp/script

The result is that all of those IP addresses come up blank with nslookup.

Is there a better Linux command line tool for reverse IP lookups?

NOTE: These are not available on the Ubiquiti Rocket M2 radio.
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

  #2   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 182
Default Is nslookup the best there is for reverse IP address to domain name?

In sci.electronics.repair Clément Durand wrote:
nslookup is ok, but most of the time, nslookup reports nothing.


It isn't a requirement that any given IP address also has a DNS entry;
it's OK for nslookup to have no answer for some IP addresses. Almost
any given IP address *should* have a "whois" record, which indicates
who that block of addresses is assigned to. The command-line tool
whois can be used to look this up.

The simplest query is like this:

whois 74.125.103.57

which tells me that that IP address is in a block assigned to Google.
If you don't have the command-line 'whois' tool on your radio, a desktop
Linux distribution will. There are also many online 'whois' tools that
can be used from a web browser. I don't know if Windows ships with a
whois tool or not.

src=157.55.135.18


Microsoft.

src=173.194.25.148


Google again.

src=23.235.255.22


This is part of a big block (23.235.224.0/19) assigned to Secured
Servers LLC in Tempe, Arizona. Secured Servers has in turn "sublet"
some of this block (23.235.255.0/24) to MC Pro Hosting of Fort
Lauderdale, FL. (See the "Found a referral..."

Matt Roberds

  #3   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 12
Default Is nslookup the best there is for reverse IP address to domainname?

mroberds wrote, on Tue, 12 Aug 2014 03:52:57 +0000:

whois 74.125.103.57

which tells me that that IP address is in a block assigned to Google.
If you don't have the command-line 'whois' tool on your radio, a desktop
Linux distribution will.


Hi Matt,

Thanks for suggesting "whois" and for running the tests.

I just logged into the rooftop radio to test if "whois" is the

$ ssh 191.168.1.20 -l ubnt -p 22 (login=ubnt, ssh port=22)

BusyBox v1.11.2 (2014-02-05 18:21:05 EET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

XM.v5.5.8# whois 74.125.103.57
-sh: whois: not found

Drat. As you had surmised, "whois" isn't on the radio linux.

But, you're right. The "whois" command worked just fine on
a desktop Linux, so, what I can do is somehow figure out how to
"rcp" the radio /proc/net/nf_conntrack to my Linux machine.

I tried "rcp" & "ftp" but neither was found on the Radio Linux.

Do you know of a way to get the entire /proc/net/nf_conntrack
over to my Linux machine?
  #4   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 182
Default Is nslookup the best there is for reverse IP address to domain name?

In sci.electronics.repair Clément Durand wrote:
Do you know of a way to get the entire /proc/net/nf_conntrack
over to my Linux machine?


Since you can ssh into the radio, scp from the desktop Linux machine
might work:

$ scp -P 22 :/proc/net/nf_conntrack nf_conntrack

This should give you a copy of the radio's nf_conntrack file in the
current directory on the desktop Linux box.

Otherwise, you might be able to do something like this, starting on
the desktop box:

desktop$ script conntrack.txt
Script started, file is conntrack.txt
desktop$ ssh 191.168.1.20 -l ubnt -p 22
radio# cat /proc/net/nf_conntrack
[contents of file appear here]
radio# logout
desktop$ exit
Script done, file is conntrack.txt

This will put everything that came to the screen in conntrack.txt on the
desktop box. It will include control characters and stuff, so you'll
have to edit that out of conntrack.txt with your favorite text editor
before proceeding.

Matt Roberds

  #5   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 1
Default Is nslookup the best there is for reverse IP address to domainname?

Clément Durand writes:

$ ssh 191.168.1.20 -l ubnt -p 22 (login=ubnt, ssh port=22)
I tried "rcp" & "ftp" but neither was found on the Radio Linux.
Do you know of a way to get the entire /proc/net/nf_conntrack
over to my Linux machine?


Have you tried scp from the machine where you ssh from?
scp :/proc/net/nf_conntrack
-- HASM




  #6   Report Post  
Posted to alt.os.linux,alt.internet.wireless,sci.electronics.repair
external usenet poster
 
Posts: 12
Default Is nslookup the best there is for reverse IP address to domainname?

mroberds wrote, on Tue, 12 Aug 2014 15:37:49 +0000:

scp from the desktop Linux machine might work:

$ scp -P 22 :/proc/net/nf_conntrack nf_conntrack


Hi Matt,
The scp command, from Linux, worked perfectly.

Otherwise, you might be able to do something like this,
desktop$ script conntrack.txt


Thanks Matt, as that's a very nice command!
It has a lot of funky characters in the results, but other
than that, it's a really nice trick!

1. Start the script on the Linux laptop:
$ script /tmp/net.script
2. Log into the rooftop modem (transceiver):
$ ssh -p 2200 -l ubnt 192.168.1.20
3. Spit out the file:
# cat /proc/net/nf_conntrack nf_conntrack
4. Exit out of the radio
# exit
5. Exit out of the script
$ exit
6. Strip the funky characters out of the results:
$ col -b /tmp/net.script /tmp/net.txt





Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OT; IP address? Tim W[_2_] UK diy 44 December 5th 09 10:05 PM
OT; IP address? The Medway Handyman UK diy 0 November 24th 09 07:40 PM
OT; IP address? Andy Champ[_2_] UK diy 5 November 24th 09 06:31 PM
OT; IP address? Ash[_4_] UK diy 6 November 23rd 09 10:49 PM
For the ip gurus How to get ip address if you only have the mac address [email protected] UK diy 19 November 24th 05 10:40 AM


All times are GMT +1. The time now is 07:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 DIYbanter.
The comments are property of their posters.
 

About Us

"It's about DIY & home improvement"