Short script to create
dnsmasq
configs (for pihole at the first place) to resolve only OpenNIC TLDs through OpenNIC's NameServers
.gitignore | ||
generate_config.js | ||
index.js | ||
package-lock.json | ||
package.json | ||
README.org |
Simple dnsmasq config builder for OpenNIC TLDs
- If you already know what nameserver you will be using - provide it as a
OPENNIC_NS
environment variable. By default it will probe OpenNIC API and pic 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 # ----------