Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Server
User Name
Linux - Server This forum is for the discussion of Linux Software used in a server related context.


  Search this Thread
Old 04-12-2022, 01:31 PM   #1
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.
Guest endpoint will communicate via wireless to a captive portal to login, this login page is provided by a server with IP example, another redundant server with IP has been placed.
The idea is if server goes down, server will answer the requests.
In my dns server I would have to do
guest IN
guest IN
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, 02:44 PM   #2
LQ Guru
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, VSIDO, tinycore, Q4OS, Manjaro
Posts: 5,797

Rep: Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775Reputation: 2775
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....)


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 09:22 AM
Postfix mailserver through DNS for Load Balancing aravind1024004 Linux - Server 3 04-16-2008 04:34 AM
DNS "IN NS" Record questions (and load balancing) DukeLeto Linux - Networking 2 04-05-2008 01:06 PM
Dynamic load balancing Dns sandeep3001 Linux - Networking 1 06-05-2005 09:28 AM
Network Load Balancing & DNS round robin scooby snacks Linux - Networking 1 04-19-2004 12:28 PM > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:00 AM.

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