mostafa8026 / smartdns

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SmartDNS

You can easily set your favorite dns by deploying this repository as a DNS server.

Step 1:

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

Step 2:

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

Step 3:

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 docker compose up --build -d

About


Languages

Language:Dockerfile 100.0%