LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-12-2022, 02:31 PM   #1
shakaxl
LQ Newbie
 
Registered: Apr 2021
Posts: 1

Rep: Reputation: Disabled
Lightbulb DNS load-balancing


Hi everyone

I am in an implementation of a network service, but I got the query if it is possible to do some kind of balancing in the Bind Linux DNS server.
Stage
Guest endpoint will communicate via wireless to a captive portal to login, this login page is provided by a server with IP example 1.1.1.1, another redundant server with IP 1.1.1.2 has been placed.
The idea is if server 1.1.1.1 goes down, server 1.1.1.2 will answer the requests.
In my dns server I would have to do
guest IN 1.1.1.1
guest IN 1.1.1.2
From a DNS perspective I see that it will always resolve to these 2 IP's but you won't be able to tell if one of the servers is down.
Once the clients have these 2 IPs in their dns cache, they will continue to use them.
I understand that it would be best to use a specialized hardware balancer for this task.
I would be grateful if someone could give me some suggestion if something could be done at the DNS server level and in any case, in what scenario is DNS load-balancing used?

Thank you very much
 
Old 04-12-2022, 03:44 PM   #2
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS,Manjaro
Posts: 4,704

Rep: Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300Reputation: 2300
I do not recall ever load balancing nameservers. DNS is a thin protocol that does not require heavy bandwidth or processing. There is not that much load to balance unless you are under attack.

I did set up high availability, using two servers and OpenVZ guests. (Today I might use Proxmox or LXC/LXD guests, or even virtual machines.) I set them up master/slave and at different local IP addresses. When they come up, the first one up would take on the nameserver IP address as a secondary, and the other would detect that and idle. If the first one up had issues or went down, the other would send a STONINTH signal and take over the DNS address and start serving.

The setup served us without fail for years, until Corporate decided to outsource nameservices. (New CEO was from India and wanted to outsource everything possible to data centers in India. But that is a tale for another time....)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS BIND Question (Load Balancing) royrsb Linux - Networking 2 02-17-2009 10:22 AM
Postfix mailserver through DNS for Load Balancing aravind1024004 Linux - Server 3 04-16-2008 05:34 AM
DNS "IN NS" Record questions (and load balancing) DukeLeto Linux - Networking 2 04-05-2008 02:06 PM
Dynamic load balancing Dns sandeep3001 Linux - Networking 1 06-05-2005 10:28 AM
Network Load Balancing & DNS round robin scooby snacks Linux - Networking 1 04-19-2004 01:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 06:16 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration