Skip to content
/ dweb-dns Public

Simple DoH Server for Blockchain Name Systems

License

Notifications You must be signed in to change notification settings

v2ex/dweb-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple DoH Server for Blockchain Domains

This is a simple DoH server for blockchain domains. Currently, it can support the following blockchain domains:

Usage

curl -H "accept: application/dns-json" -X GET "https://dweb-dns.v2ex.pro/dns-query?name=v2ex.bit"
{
  "Status": 0,
  "TC": false,
  "RD": true,
  "RA": false,
  "AD": false,
  "CD": false,
  "Question": [
    {
      "name": "v2ex.bit.",
      "type": 16
    }
  ],
  "Answer": [
    {
      "name": "v2ex.bit",
      "type": 16,
      "TTL": 600,
      "data": "dnslink=/ipns/k51qzi5uqu5dkczezx3wje1dizdk7rta8uc50a5o9ix4wmzqniacrdbfapt8cf"
    }
  ],
  "Authority": [],
  "Additional": []
}

Usage with Kubo (go-ipfs)

You can use this server with Kubo by adding the following to your config:

"DNS": {
  "Resolvers": {
    "bit.": "https://dweb-dns.v2ex.pro/dns-query"
  }
}

After that, your Kubo gateway will be able to resolve and access blockchain domains like this:

With the IPFS support in Brave, you can access blockchain domains like this:

ipns://v2ex.bit in Brave

About

Simple DoH Server for Blockchain Name Systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages