===========
A
DNSMAnager Built from scratch inGolangusing the microservices design pattern, it consists of6 services
- DNS Resolver (with an optional forwarder
fallback) - RESTful API (to make it easy to manage the entries)
- Hosts File(s) compatible service, so you can provide
hostsfile to it and it will resolve host names from it. - Caching layer, to low the
I/Ousage. - Dashboard using
laravel(a PHP framework) - Nginx for service the dashboard.
===============
There are two sections of configurations,
rexervershell scriptnginx configurations
-cache int
the in-memory cache ttl in seconds to save record search time (default 600)
-fallback string
the fallback dns server (default "8.8.8.8:53")
-hosts string
hosts file(s) to read from them/it when needed (default "/etc/hosts")
-listen-api string
the address of the api server to listen on (default ":80")
-listen-dns string
the address of dns server to listen on (default ":53")
-storage string
the data source name (default "./rexerver.db")Its configuration found in
/etc/nginx/sites-enabled/rexerver
=============
By default any
dnsservice uses theudp 53port, but you can change it from the shell script/root/rexerver.shby changing the value of--listen-dnsto your own port.
Go to
/etc/nginx/sites-enabled/rexerver, change the value oflistenfrom8080to anything else, THEN execute the following commandservice nginx restart.
Go to
/root/rexerver.sh, change the value oflisten-apito anything else THEN YOU MUST change the same configurations in/var/rexerver/laravel.env, changeAPI_BASE_URLto something else.
Cache is used to make it high performance, so just change the value of
cachein the/root/rexerver.shto something else.
pm2 restart rexerver
It is a folder for
Golanga programming language.
Goto
/root/rexerver.shchange the value of--fallbackto your own server.