Giter VIP home page Giter VIP logo

akamai-debug's Introduction

akamai-debug

Set of tools to debug Akamai

The dns directory has one directory per country, with dns servers in many cities. The bin directory contains the tools.

Tools

bin/georandomdns <dns_file>

Receives a filename in the dns directory. Returns one random of the IP addresses the file contains.

bin/resolvehost <dns> <hostname>

Receives the IP address of a DNS server and a hostname to resolve. Returns the IP address that the hostname resolves to, according to the DNS server.

bin/ixget <server> <host> [<path>]

Receives a server IP address or hostname, a hostname for the Host header, and optionally a path, if it's different from /. Makes an HTTP request to the server using Akamai's debug directives in the Pragma request header and returns all the response headers.

bin/geolookup <ip_address>

Receives an IP address. Returns the city, country and continent where it is located, according to Akamai's Edgescape service.

bin/httproute <dns_file> <server> <host> [<path>]

Makes an HTTP request to the server and parses the debug response headers to show the client-edge-parent-origin route, along with the geolocation of each server involved.

For example, in the following case, a request is made to an Edge server in Iran.

guillermo$ bin/httproute dns/ir/tiran olx.ir.edgesuite.net olx.ir
Using 94.139.183.210 as DNS
94.139.183.210 is located in TEHRAN, IR, AS
Resolving olx.ir.edgesuite.net
Using 107.14.43.195 as Edge server
Requesting http://olx.ir/ from Edge server
X-Cache: TCP_MISS from a107-14-43-191.deploy.akamaitechnologies.com (AkamaiGHost/7.1.4.1.1-15000561) (-)
107.14.43.191 is located in SECAUCUS, US, NA
X-Cache-Remote: TCP_MISS from a209-170-118-119.deploy.akamaitechnologies.com (AkamaiGHost/7.1.4.1.1-15000546) (-)
209.170.118.119 is located in ASHBURN, US, NA

akamai-debug's People

Contributors

gpirujo-olx avatar

Watchers

Seba avatar

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.