# Ripe Dns Chain

> Fetches DNS chain data from RIPE NCC for a specific domain. This skill must be used whenever the user asks for a 'chain', 'full path', or 'multi-step' DNS resolution

- Skill: `mehrdadrad/ripe-dns-chain` (Agent Skill)
- Install (CLI): `npx skillmds@latest add mehrdadrad/ripe-dns-chain`
- Raw SKILL.md: https://api.skillmd.com/api/skills/mehrdadrad/ripe-dns-chain/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: mehrdadrad (https://skillmd.com/u/mehrdadrad)
- Updated: 2026-09-22
- Page: https://skillmd.com/skills/mehrdadrad/ripe-dns-chain

---


# RIPE DNS Chain Lookup

This skill queries the RIPE Stat API to retrieve the DNS chain for a specific domain name.

## When to Use

- To troubleshoot DNS resolution issues.
- To verify the delegation chain of a domain.

## Execution

Set the `resource` variable in the `variables` argument to the domain name you wish to query (e.g., `www.ippacket.org`).

```python
import requests
import json
import sys

resource = locals().get("resource") or (sys.argv[1] if len(sys.argv) > 1 else None)

if resource:
    response = requests.get("https://stat.ripe.net/data/dns-chain/data.json", params={"resource": resource})
    print(json.dumps(response.json(), indent=2))
else:
    print("Error: The 'resource' variable is required. Please provide it in the 'variables' argument.")
```

## Input

- `resource`: The domain name to query (e.g., `www.ippacket.org`).

## Output

A JSON object containing:
- `status`: Request status.
- `data`: Contains `forward_nodes` and `reverse_nodes` lists with DNS resolution details.
