🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

github.com/jakewarren/ipisp

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/jakewarren/ipisp

Source
Go
Version
v0.0.0-20180425184110-e21c1e5c2913
Version published
Created
Source

IPISP

IPISP provides a Go client for Team Cymru's ASN resolution service.

Features

  • Programmatically resolve IP addresses or ASNs to network information.
  • Allows bulk conversion.
  • DNS and Netcat/Whois client.
  • Thread-safe

GoDoc

Example

A more thorough example is in the examples/ folder.

client, _ := ipisp.NewDNSClient()

resp, _ := client.LookupIP(net.ParseIP("4.2.2.2"))

fmt.Printf("IP: %v\n", resp.IP)
fmt.Printf("ASN: %v\n", resp.ASN)
fmt.Printf("Range: %v\n", resp.Range)
fmt.Printf("Country: %v\n", resp.Country)
fmt.Printf("Registry: %v\n", resp.Registry)
fmt.Printf("ISP: %v\n", resp.Name)

FAQs

Package last updated on 25 Apr 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts