Skip to content

Add IP Network Information & ASN Data Services #17

Description

@Ricky-G

Description

Implement IP network information and ASN (Autonomous System Number) data services to provide comprehensive network-level information about IP addresses.

Requirements

  1. ASN lookup: Return ASN number, organization name, and registry information
  2. Network range detection: Show CIDR blocks and IP ranges the address belongs to
  3. BGP routing information: Display routing paths and peer information
  4. Network organization details: Company/ISP information and contact details
  5. IP allocation information: WHOIS data and allocation dates
  6. Network type classification: Identify network categories (ISP, hosting, enterprise, etc.)
  7. Registry information: RIR (Regional Internet Registry) details

API Endpoints

  • GET /api/ip/network - Get network information for client IP
  • GET /api/ip/{ipAddress}/network - Get network information for specific IP

Example Response

{
  "ipAddress": "203.0.113.1",
  "asn": "AS15169",
  "asnNumber": 15169,
  "asnOrganization": "Google LLC",
  "networkRange": "203.0.113.0/24",
  "cidr": "203.0.113.0/24",
  "networkName": "GOOGLE-NET",
  "networkType": "hosting",
  "organization": {
    "name": "Google LLC",
    "country": "US",
    "registry": "ARIN"
  },
  "registry": {
    "name": "ARIN",
    "country": "US",
    "allocatedDate": "2000-03-30",
    "lastModified": "2023-11-15"
  },
  "bgp": {
    "prefix": "203.0.113.0/24",
    "originAs": 15169,
    "peerCount": 245,
    "pathLength": 3
  },
  "whois": {
    "netName": "GOOGLE-NET",
    "orgName": "Google LLC",
    "adminContact": "admin@google.com",
    "techContact": "tech@google.com",
    "created": "2000-03-30",
    "updated": "2023-11-15"
  }
}

Data Sources Integration

  • WHOIS database integration
  • BGP routing table data
  • RIR (ARIN, RIPE, APNIC, etc.) databases
  • ASN mapping services
  • Network topology information

Implementation Notes

  • Cache network data for performance optimization
  • Support both IPv4 and IPv6 network information
  • Implement data validation and error handling
  • Add rate limiting for network lookup endpoints
  • Include data freshness timestamps
  • Support historical network allocation data

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions