Dead cdn dns bypass

From divinevideo/divine-mobile · View interactive version

Dead cdn dns bypass is an AI agent skill from the GitHub repository divinevideo/divine-mobile. Recover content from "dead" CDNs where DNS no longer resolves but servers still respond. Use when: (1) A service shut down but you have URLs to their CDN, (2) DNS lookups fail but you suspect the CDN provider (Fastly, CloudFront, Akamai) still has the content, (3) Archiving content from defunct serv

How to use this skill

Skill file

Dead CDN DNS Bypass - Recovering Content from Defunct Services

Problem

When a service shuts down, their DNS records stop resolving, making URLs appear

completely dead. However, the actual content often still exists on CDN servers

(Fastly, CloudFront, Akamai, etc.) that continue serving it - the servers just

aren't reachable via normal DNS resolution.

Context / Trigger Conditions

Solution

Step 1: Identify the CDN Provider

Look at the original URL hostname to identify the CDN:

Step 2: Find CDN IP Addresses

For Fastly (common for many defunct services):

# Fastly's anycast IPs
151.101.1.6
151.101.65.6
151.101.129.6
151.101.193.6

For other CDNs, check their documentation or try known IP ranges.

Step 3: Test with Host Header

# Test if content is still served
curl -sI \
  -H "Host: original-cdn-hostname.com" \
  "http://FASTLY_IP/path/to/content"

# Example for Vine:
curl -sI \
  -H "Host: mtc.cdn.vine.co" \
  "http://151.101.1.6/r/videos/ABC123.mp4"

Step 4: Download Content

import requests

def download_via_cdn_ip(original_url: str, cdn_ip: str) -> bytes:
    """Download content bypassing dead DNS."""
    import re

    # Extract host and path from URL
    match = re.match(r'https?://([^/]+)(/.+)', original_url)
    if not match:
        return None

    host = match.group(1)
    path = match.group(2)

    # Hit IP directly with Host header
    response = requests.get(
        f"http://{cdn_ip}{path}",
        headers={"Host": host},
        timeout=30
    )

    if response.status_code == 200:
        return response.content
    return None

# Example usage
content = download_via_cdn_ip(
    "http://mtc.cdn.vine.co/r/videos/ABC123.mp4",
    "151.101.1.6"
)

Verification

  1. Check for HTTP 200 response (not 403 or 404)
  2. Verify content-type header matches expected type
  3. Validate file integrity (check magic bytes, file size > 0)

Example: Vine CDN Recovery

The Vine CDN shut down with DNS in 2017, but as of 2026, Fastly still serves

the video files:

# Vine CDN hosts and their Fastly IP
VINE_CDN_HOSTS = {
    "mtc.cdn.vine.co": "151.101.1.6",
    "v.cdn.vine.co": "151.101.1.6",
}

# Original URL from archived metadata
video_url = "http://mtc.cdn.vine.co/r/videos/ABC123.mp4?versionId=xyz"

# Download via IP bypass
import requests
import re

match = re.match(r'https?://([^/]+)(/.+)', video_url)
host, path = match.groups()

response = requests.get(
    f"http://151.101.1.6{path}",
    headers={"Host": host}
)

# Save the recovered video
with open("recovered_video.mp4", "wb") as f:
    f.write(response.content)

Result: Recovered 121,149 Vine videos that Wayback Machine didn't archive.

Notes

even after the origin server is gone

keep these in your requests

Common CDN IP Ranges

| CDN | IP Range | Notes |

|-----|----------|-------|

| Fastly | 151.101.0.0/16 | Anycast, try .1.6, .65.6, .129.6, .193.6 |

| CloudFront | Varies | Check AWS IP ranges JSON |

| Akamai | Varies | Use GTM lookup tools |

Related Techniques

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.