Skip to content

Example how to set up load balancing at the DNS server level

Notifications You must be signed in to change notification settings

JustUnknownDude/dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

In the process of filling... Later I will add an auto-deployment script

An example process of how to set up load balancing at the DNS server level

Will use Centos and Dnsmasq as DNS server

1. First you need to install dnsmasq

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

--------------------------!--------------------------------------

2.Next, copy the following files to /etc/ :

  • 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

    3. Add servertest.sh to Cron

    crontab -e
    */2 * * * * bash /etc/serverstest.sh > /dev/null 2>&1
    

About

Example how to set up load balancing at the DNS server level

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages