In the process of filling... Later I will add an auto-deployment script
Will use Centos and Dnsmasq as DNS server
yum install dnsmasq bind-utils-------- I don't remember if this is necessary ----------
Next, specify 127.0.0.1 as the DNS server
echo “nameserver 127.0.0.1” > /etc/resolv.conf--------------------------!--------------------------------------
-
dnsmasq.conf
-
domains.conf
-
servertest.sh
In the dnsmasq.conf file you need to add your server IP: listen-address=YOUR_IP
domains.conf - list of your domains, if there is more than one
servertest.sh - here you need to specify the IP of your servers
crontab -e
*/2 * * * * bash /etc/serverstest.sh > /dev/null 2>&1