Skip to content

mnbarinov/as-number-lookup-by-ip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Autonomous System Number Lookupby IP Address (BASH Script)

ASLOOKUP
Autonomous System Number Lookup by IP Address

Dependencies

  1. Whois

    sudo apt -y install whois

Create and Install

  1. Create bash script:
    nano aslookup.sh

  2. Insert code
    #!/bin/bash
    whois -h whois.cymru.com -v $1

  3. Save
    ctrl+o ENTER

  4. Change the access permissions
    sudo chmod +x aslookup.sh

  5. Installation
    cp aslookup.sh /usr/bin/aslookup

How to use

Command:
aslookup 8.8.8.8

Result:


AS      | IP               | BGP Prefix          | CC | Registry | Allocated  | AS Name
15169   | 8.8.8.8          | 8.8.8.0/24          | US | arin     | 1992-12-01 | GOOGLE, US

About

Autonomous System Number Lookup by IP Address

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages