You can easily set your favorite dns by deploying this repository as a DNS server.
prepare a linux server (ubuntu/debian) with a PUBLIC IP address available on it.Install docker on it, you can use the following link if you use ubuntu 20.04:
https://support.netfoundry.io/hc/en-us/articles/360057865692-Installing-Docker-and-docker-compose-for-Ubuntu-20-04 Clone this repo onto your server using this command (you have to install git first using "sudo apt install git"):
$sudo git clone https://github.com/arezoomaleki/smartdns.git
Finally you can provide your Server IP by simply copying the .env.sample.
$ cd smartdns
$ sudo cp .env.sample .env
# edit the IP field to your server IP
$ docker compose up --build -d
P.S:
Everytime you add a domain into dnsmasq.conf and domains.txt you have to run the
Everytime you add a domain into dnsmasq.conf and domains.txt you have to run the
docker compose up --build -d