mnuzen / wire-dolphine

The goal of this project is to provide causal users with a simple and intuitive way of visualizing network communications. By explaining how computers communicate through packets and networks, we hope to educate users on the structure of the internet.
Apache License 2.0
3 stars 1 forks source link

Finish Reverse DNS lookup #19

Closed thorncorona closed 4 years ago

thorncorona commented 4 years ago

Description

DNS lookup code.

InetAddress.getByName(ip).getCanonicalHostName();

Java's native implementation is very slow.

Out of sites

[
  'google.com',
  'reddit.com',
  'nytimes.com',
  'reddit.com',
  'facebook.com',
  'python.org',
  'imgur.com',
  'wikipedia.org',
  'youtube.com',
  'stackoverflow.com',
]

about 40% simply returned back their IP.

My solution:

PR for #17

Checklist:

Tests Performed:

arunk054 commented 4 years ago

You should be able to merge this to master then rebase your map_viz to master.

thorncorona commented 4 years ago

Rebased.