How to convert ip to DSL provider company name?


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting How to convert ip to DSL provider company name?
# 1  
Old 10-23-2014
How to convert ip to DSL provider company name?

Hello,
I am not sure this question is totally related to scripting.
What I want to do is to match ip addresses with DSL provider company.
It should extract ip addresses from log file (which is no problem) and ask the script to search each ip in regional internet registries source webpage. Output will be the list of each ip and corresponding dsl/hosting provider company name.
Normally I manage this process manually. I check each ip on by one at ripe . net

Please let me know if there is a possibility

Thanks in advance
Boris
# 2  
Old 10-23-2014
You might use the DNS SOA info for the IP or domain name of their hosts, like the DNS server they give you or router closest.
# 3  
Old 10-24-2014
Use a command line web browser e.g. lynx or wget to query the database at the address you provided, and then grep/awk to extract the info required.
# 4  
Old 10-27-2014
Quote:
Originally Posted by RudiC
Use a command line web browser e.g. lynx or wget to query the database at the address you provided, and then grep/awk to extract the info required.
could you please share a sample code ?
I could not understand how we can get the result
# 5  
Old 10-27-2014
Code:
wget "http://url/index.html"
extract_information_from index.html

# 6  
Old 10-27-2014
Try e.g.
Code:
lynx -dump https://apps.db.ripe.net/search/query.html?searchtext=37.76.125.127\&source=RIPE | grep descr
descr:           Public pool for mobile Internet users

and provide the IP address you want to query...
Login or Register to Ask a Question

Previous Thread | Next Thread

6 More Discussions You Might Find Interesting

1. IP Networking

Flood in the inner circle of provider's Internet

The hardware in the inner circle in the provider's network worked incorrectly and therefore there was flood for an hour. They said that it wouldn't repeat again anymore, and that that flood was not in our user network. Is this 100% correct? (As there was no Internet because of that flood we... (1 Reply)
Discussion started by: Xcislav
1 Replies

2. IP Networking

Difference between Bandwidth Provider and Peering Partn er

Hey everyone. I work for a small colocation data center. We also provide internet to small businesses via upstream providers like level 3. We also have peering agreements with a few places like NYIIX. My main questions are thus.. 1. NYIIX, a peering interconnect, has a list of mutually peered... (1 Reply)
Discussion started by: Lost in Cyberia
1 Replies

3. Solaris

PID Provider dtrace script

I'm just starting to mess about with dtrace on Solaris. How do I configure a probe in a PID provider dtrace script to trigger when the process being traced exits? I've tried pid$1:::exit where $1 is the PID but I get 'exit' is an invalid probe name (0 Replies)
Discussion started by: JerryHone
0 Replies

4. Linux

cfdisk in DSl

ive been playing around in dsl (damn small linux) live for some time and i love the simplicity of it. but when i go into cfdisk to partition my hard drive, it says like "Fatal Error:Does not have permission" i am trying out Xandros desktop os 2.0 right now on my laptop. Can some one help me... (4 Replies)
Discussion started by: Texasone
4 Replies

5. UNIX for Advanced & Expert Users

DSL Router

How do I configure my Solaris system to connect to internet thro Linksys DSL Router? Thanks in adavnce. (9 Replies)
Discussion started by: praveenk
9 Replies

6. UNIX for Dummies Questions & Answers

dsl out

i have 5 computers on a network behind a firewall, once in a while my DSL service will get knocked out and will come back in like 20 minutes or so, but during those 20 minutes, i will be able to view my website, but i will not be able to retrieve my mail, nor will be able to ftp or telnet into my... (12 Replies)
Discussion started by: norsk hedensk
12 Replies
Login or Register to Ask a Question