Created
May 7, 2014 13:21
-
-
Save hsiboy/4c5a91a3f7c38ea17cd3 to your computer and use it in GitHub Desktop.
read a list of hosts and see if they use akamai
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.about.com akadns.net | |
www.adobe.com | |
www.amazon.com | |
www.amazon.co.uk | |
www.aol.com akadns.net | |
www.aol.co.uk akadns.net | |
www.apple.com akadns.net | |
www.argos.co.uk | |
www.asda.co.uk | |
www.ask.com edgesuite.net | |
www.ask.co.uk | |
www.asos.com | |
www.autotrader.co.uk | |
www.avg.com edgesuite.net | |
www.barclays.co.uk | |
www.bbc.co.uk | |
www.bebo.com | |
www.blogger.com | |
www.booking.com | |
www.bookings.com | |
www.bt.com | |
www.channel4.com | |
www.ciao.co.uk | |
www.cnet.com akadns.net | |
www.dailymail.co.uk edgesuite.net | |
www.direct.gov.uk edgesuite.net | |
www.diy.com | |
www.easyjet.com | |
www.ebay.com | |
www.ebay.co.uk | |
www.expedia.co.uk | |
www.facebook.com | |
www.flickr.com | |
www.gamespot.co.uk | |
www.google.com | |
www.google.co.uk | |
www.gowindowslive.com | |
www.guardian.co.uk | |
www.gumtree.com edgesuite.net | |
www.halifax.co.uk | |
www.hsbc.co.uk | |
www.ign.com edgesuite.net |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
LIST=host.list | |
LOGFILE=akamai.log | |
cat $LIST | while read TARGET | |
do | |
AKAMAI=0 | |
echo -e "Checking $TARGET"; | |
AKAMAI=$(host -t CNAME $TARGET | gawk 'match($0, "(edgesuite.net|ak.fbcdn.net|akadns.net|akamai.net|akamaiedge.net|llnwd.net|edgecastcdn.net|hwcdn.net|panthercdn.com|simplecdn.net|instacontent.net|footprint.net|ay1.b.yahoo.com|yimg.|internapcdn.net|cloudfront.net|netdna-cdn.com|netdna-ssl.com|netdna.com|cotcdn.net|cachefly.net|bo.lt|cloudflare.com|afxcdn.net|lxdns.com|att-dsa.net|vo.msecnd.net|voxcdn.net|bluehatnetwork.com|swiftcdn1.com|cdngc.net|fastly.net|gslb.taobao.com|gslb.tbcache.com|mirror-image.net|yottaa.net|cubecdn.net|r.cdn77.net|incapdns.net)",a) {print a[1];}') | |
echo "$TARGET $AKAMAI">>$LOGFILE | |
done | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
www.about.com | |
www.adobe.com | |
www.amazon.com | |
www.amazon.co.uk | |
www.aol.com | |
www.aol.co.uk | |
www.apple.com | |
www.argos.co.uk | |
www.asda.co.uk | |
www.ask.com | |
www.ask.co.uk | |
www.asos.com | |
www.autotrader.co.uk | |
www.avg.com | |
www.barclays.co.uk | |
www.bbc.co.uk | |
www.bebo.com | |
www.blogger.com | |
www.booking.com | |
www.bookings.com | |
www.bt.com | |
www.channel4.com | |
www.ciao.co.uk | |
www.cnet.com | |
www.dailymail.co.uk | |
www.direct.gov.uk | |
www.diy.com | |
www.easyjet.com | |
www.ebay.com | |
www.ebay.co.uk | |
www.expedia.co.uk | |
www.facebook.com | |
www.flickr.com | |
www.gamespot.co.uk | |
www.google.com | |
www.google.co.uk | |
www.gowindowslive.com | |
www.guardian.co.uk | |
www.gumtree.com | |
www.halifax.co.uk | |
www.hsbc.co.uk | |
www.ign.com |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment