Short script to create dnsmasq configs (for pihole at the first place) to resolve only OpenNIC TLDs through OpenNIC's NameServers
Go to file
2024-06-05 00:44:01 +03:00
.gitignore To good to not to share 2024-06-05 00:44:01 +03:00
generate_config.js To good to not to share 2024-06-05 00:44:01 +03:00
index.js To good to not to share 2024-06-05 00:44:01 +03:00
package-lock.json To good to not to share 2024-06-05 00:44:01 +03:00
package.json To good to not to share 2024-06-05 00:44:01 +03:00
README.org To good to not to share 2024-06-05 00:44:01 +03:00

Simple dnsmasq config builder for OpenNIC TLDs

  • If you already know what nameserver you will be using - provide it as the OPENNIC_NS environment variable. By default it will probe OpenNIC API and pick the closest server
  • To create only opennic or peered server list use -opennic and -peered flags. By default it will print both lists

#+ NAME: Example with preset NS

OPENNIC_NS=127.0.0.35 node index.js -opennic
# OpenNIC TLDs
server=/bbs/127.0.0.35
server=/chan/127.0.0.35
server=/cyb/127.0.0.35
server=/dyn/127.0.0.35
server=/epic/127.0.0.35
server=/geek/127.0.0.35
server=/gopher/127.0.0.35
server=/indy/127.0.0.35
server=/libre/127.0.0.35
server=/neo/127.0.0.35
server=/null/127.0.0.35
server=/o/127.0.0.35
server=/oss/127.0.0.35
server=/oz/127.0.0.35
server=/parody/127.0.0.35
server=/pirate/127.0.0.35
# ----------