How to Wiki Database (change log) http://[222:a8e4:50cd:55c:788e:b0a5:4e2f:a92c]
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

121 lines
4.8 KiB

====== Wyrd ======
^ :!: **Attention!** ^
| **The project is deprecated** in favor of blockchain based DNS - [[https://github.com/Revertron/Alfis|ALFIS]], the crawler is stopped forever (no more new domains). [[https://github.com/Revertron/wyrd/blob/master/README.md|Readme.md]] |
Decentralized DNS implementation for Yggdrasil
Working servers are here:
^ Server IP ^ Location ^
|301:2522::53|Praha, Czechia|
|301:2923::53|Bratislava, Slovakia|
|300:4523::53|Duesseldorf, Germany|
|303:8b1a::53|Saint Petersburg, Russia|
Feel free to use :)
===== Introduction =====
If you use Yggdrasil network, then you've thought about new DNS. Not only to convert names to IPs, but use some additional records, that you can't add to hosts file, like CNAME, MX or TXT. And the system should be reliable, if someone got one domain, it must maintain it's owner, and not give it to some second guy. There are some "crypto-dns" systems, like EmerDNS and alike, but they need you to have some gigabytes of HDD-space to store that blockchain. We cannot afford this in mobile phones and tablets. Then, we need to use some ordinary caching server to provide those DNS-records, to set them in mobile and use like ordinary DNS.
What is Wyrd?
Wyrd is a crawler script for BIND DNS-server, to collect and validate DNS-records from NodeInfo data from all nodes. It gets data - domains, DNS-records, checks for "owner", and stores them in MySQL database (one simple table), then gets all records from that table and feeds it to BIND server.
How it works?
* Checks all nodes (like in map.ygg crawler) for DNS info.
* Iterates over domains found, and checks their validity, zone and ownership. If the domain is new, it is added, if the owner (IPv6 of the node) is the same, it updates DNS-records, if IPv6 != owner, it just ignores the domain.
* When the domain is added, the node (represented by IPv6) is saved as an owner, and datetime (seen_first) is saved along it.
* If you need to change the owner to some other node, you set owner property to the new IPv6, and it will be changed in DB.
* If you want to use some other node as a "backup owner" in case first node dies, you can set fallback property, and that second node will become a new owner when the first will be gone for some time (not yet implemented).
* In future version every domain will need to be "bought" by PoW. Simple mining of nonce, that will eliminate squatting, or make it hard enough.
How to add your domain to those servers? Easy! Just add needed DNS-records to your zoneinfo like this:
One domain
Althought it has a lot of different brackets, but it is simple
<code jsdon>NodeInfo: {
dns: {
domains: [
{
domain: example.ygg
ip: 200:1111:2222:3333:4444:5555:6666:7777
}
]
}
}
</code>
One domain with subdomains
If you use the records array with type and/or ttl, then you need to change ip to data, because there may be some CNAME also, not only IP.
<code json>NodeInfo: {
dns: {
domains: [
{
domain: example.ygg
records: [
{
data: 200:1111:2222:3333:4444:5555:6666:7777
name: @
ttl: 300
type: AAAA
}
{
data: 200:1111:2222:3333:4444:5555:6666:7778
name: ftp
ttl: 600
type: AAAA
}
]
}
]
}
}
</code>
All other variants with explanation
<code>"nodeinfo": {
"dns": {
// You may add some contact, just how WHOIS does
"contact": mail@example.com
"domains": [
{
"domain": "test.ygg", // Your desired domain
"records": [
{
// The IP address to resolve to, it may be different from your node's address
"data": "200:149b::b722:fe09:d31:84a4",
"name": "*", // You can omit it, default "@" will be used
"ttl": 300, // You can omit it too, default 3600 (one hour) will be used
"type": "AAAA" // And this one can be omited, AAAA will be used as default
}
],
// Tags will be used for ranking and searching in the future, stay tuned ;)
"tags": [
"test",
"dns",
"experiment"
]
},
{
// You can try some real domains, but they will be ignored :)
"domain": "google.com",
// Instead of "records" array you can just enter an IP address,
// type and TTL will be default - AAAA & 3600
"ip": "200:149b::b722:fe09:d31:84a4"
}
]
},
"location": "Somewhere on Earth", // The common fields
"name": "My meganode!",
}
</code>
Currently only this TLD is supported: .ygg. If the community will need some more, we can add some.
====== Links ======
Official Wyrd's repository on GitHub: https://github.com/Revertron/wyrd