Coder Social home page Coder Social logo

kkrs / cdntest Goto Github PK

View Code? Open in Web Editor NEW

This project forked from redundancy/cdntest

0.0 1.0 0.0 13 KB

CLI tool for gathering info in order to debug CDN connection issues without requiring end users to install and use complicated tools

License: MIT License

Go 100.00%

cdntest's Introduction

cdntest

CDN Test is a program intended to be able to be distributed to the users of a service, in order to help debug connection issues to a CDN. It provides a large amount of connection timing information, as well as DNS and the IP to which it connected. It also allows advanced users to specify an IP or DNS that will override the hostname in the URL, enabling you to test connections to CDN distributions without changing your hosts file or DNS entries.

It is currently based mainly around the debugging of CloudFront requests, which helpfully already provide a source of helpful information: http://d7uri8nf7uskq.cloudfront.net/CustomerTesting.html

Rather than require a user to be quite technically competent and install or use multiple tools, cdntest aims to reduce the work required by the end user to downloading a single tool, and running it with an endpoint file to download, then producing output in a file (and on the console) that the user can attach to a report.

Usage

> cdntest https://www.google.com
Running CDN test at 2016-07-28 20:40:06.3299465 -0400 EDT
My public IP is: xxx.xxx.xxx.xxx
Host lookup of www.google.com took 14.6991ms
DNS returned: [173.194.219.105 173.194.219.104 173.194.219.99 173.194.219.106 173.194.219.103 173.194.219.147]
Your DNS resolver is  (71.242.0.216)
Connected to 173.194.219.105:443 in 32.0209ms
TLS handshake in 67.0429ms
SSL Certificate Information
        www.google.com - Issued by: Google Internet Authority G2, Valid Until: 2016-10-05 13:16:00 +0000 UTC
        Google Internet Authority G2 - Valid Until: 2017-12-31 23:59:59 +0000 UTC
        GeoTrust Global CA - Valid Until: 2018-08-21 04:00:00 +0000 UTC
Response was 200 OK
Reading 10487 bytes took 50.6795ms (206 KiB/s)
MD5 of Content fda603052f13608c0364ed8f71e5e50c

Features Still Needed

Information Provided

  • Test Timestamp
  • User's public IP address (via https://api.ipify.org)
  • AWS CloudFront - DNS Identity
  • AWS CloudFront - Request ID
  • DNS resolver (via resolver-identity.cloudfront.net)
  • Endpoint IP
  • TCP connection time
  • SSL Handshake time
  • SSL Certificate validation
  • Download time
  • MD5 Hash of content
  • Response Code Status
  • Save the content body to file
  • Number of redirects
  • Packet loss
  • Traceroute

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.