Skip to content

baghamut/homebrew-akasdig

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

78 Commits
 
 
 
 

Repository files navigation

Sdig

A little script does DNS lookup to get Akamai staging network IP address.

Usage

  $ sdig www.foo.com [options]

Installation (using homebrew)

  $ brew tap ricky840/akasdig
  $ brew install ricky840/akasdig/sdig

Options

  -v, --verbose                    Verbose output. Print the whole DNS resolution chain.
  -a, --add                        Add staging IP spoofing to /etc/hosts.
  -r, --remove                     Remove all spoofing for the domain from /etc/hosts.
  -e, --etn NUMBER(1~11)           Add etn server spoofing to /etc/hosts.
  -h, --help                       Display help message.

Example

To get Akamai staging network IP address for www.akamai.com

$ sdig www.akamai.com
e1699.dscc.akamaiedge-staging.net.
23.62.71.31

Spoofing staging IP address for www.akamai.com

$ sdig www.akamai.com -a
e1699.dscc.akamaiedge-staging.net.
23.62.71.31
23.62.71.31 was added to the hosts file.

Remove www.akamai.com from /etc/hosts file.

$ sdig www.akamai.com -r
Removed www.akamai.com from /etc/hosts.

Remove existing www.akamai.com from /etc/hosts and add staging IP address.

$ sdig www.akamai.com -ra
Removed www.akamai.com from /etc/hosts.
23.62.71.31 was added to the hosts file.

Spoofing ETN test server IP address.

$ sdig www.akamai.com -e 7
etn7.akamai.com(205.185.220.230) was added to /etc/hosts.

Remove existing www.akamai.com from /etc/hosts and spoofing ETN test server IP address.

$ sdig www.akamai.com -re 7
Removed www.akamai.com from /etc/hosts.
etn10.akamai.com(96.16.96.53) was added to /etc/hosts.

About

Lookup Akamai staging IP address!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%