opennic2dnsmasq/README.org

32 lines
937 B
Org Mode
Raw Normal View History

2024-06-05 00:42:16 +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
#+BEGIN_SRC sh :results output
OPENNIC_NS=127.0.0.35 node index.js -opennic
#+END_SRC
#+RESULTS: Example with preset NS
#+begin_example
# 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
# ----------
#+end_example