MTGRESOLVER

authoritative dns for magic: the gathering
About
mtgresolver is a custom authoritative DNS server.
It serves Magic: The Gathering cards as TXT records.

Each card name is a hostname.
Each rules text is returned by the zone.
Querying a Card
Query any card by its name, hyphenated, under card.mtgresolver.com.

dig TXT lightning-bolt.card.mtgresolver.com

This returns all available fields: mana cost, type, rules text, and power/toughness or loyalty where applicable.
Field Prefixes
You can request a specific field by prepending a prefix to the card name:
dig TXT mana.lightning-bolt.card.mtgresolver.com mana cost
dig TXT type.lightning-bolt.card.mtgresolver.com type line
dig TXT text.lightning-bolt.card.mtgresolver.com oracle text
dig TXT pt.tarmogoyf.card.mtgresolver.com power / toughness
dig TXT loyalty.jace-the-mind-sculptor.card.mtgresolver.com starting loyalty
Philosophy
DNS is a naming system.
Magic has over 36000 cards.

This project treats cards as subdomains.
The authoritative source reveals their text.