RiiConnect24 / DNS-Server

This server will allow you to connect to RiiConnect24 Servers when your Internet Service Provider does not work allow using Custom DNS.
MIT License
45 stars 23 forks source link

I made a 'Hosts' file based on dns_zones.json #8

Closed DandelionSprout closed 4 years ago

DandelionSprout commented 4 years ago

Hello, Dandelion Sprout here, an adblocking enthusiast and sporadic Nintendo DS retrogamer.

After I stumbled across this repo tonight, I realised that dns_zones.json contained all the necessary IP addresses and entries that I was able to make a so-called 'Hosts' file out of it. While such lists are normally used to send ad and tracking domains to an empty localhost IP, they can also be used for IP redirections in certain settings and programs.

While it's applaudable that this repo hosts an entire DNS server tool of its own, I believe there's more and more people out there who are gradually setting up Raspberry Pis with AdGuard Home or Pi-Hole; the use of which would not only be the kind of homemade server that this repo aims to provide, but also allows end-users to see all in- and out-going connections and to have a wider range of DNS server settings they can use; and some end-user even choose to make those servers available from outside their homes (though with query rate limits).

Based on https://github.com/RiiConnect24/DNS-Server/commit/ca526c69e4c0e8b6818278e6cce51c4c1091712c#diff-8572be3e9bf533ddf03c4619685c7418, a relatively simple regex to convert the entries would be .*{.*\n.*\n.*":"(.*)",\n.*":"(.*[0-9]).*\n.*\2 \1.

Note that I made this pull before Wiimmfi's November maintenance and planned IP address change(s).

larsenv commented 4 years ago

Thank you!

KcrPL commented 4 years ago

👍