LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-17-2009, 01:39 AM   #1
royrsb
LQ Newbie
 
Registered: Feb 2009
Posts: 3

Rep: Reputation: 0
DNS BIND Question (Load Balancing)


Hi

This is my first post.

I would like to know if the DNS setup that I'd like to do is possible with BIND. My experience in BIND is not yet good enough.

Here is the setup:
I have two hosts, HOST_A and HOST_B with one DNS server in the middle and two web servers, WEB_A and WEB_B. Let's say they are in the same domain, "acme.com". If HOST_A perform a DNS query with the domain "acme.com", the DNS give the IP address of WEB_A. Then, if HOST_B, the DNS will give the IP address of WEB_B.

Is there a way in BIND to make 2 regions/profile where can choose in 2 separate IP pool of web servers and give to the hosts based according to host's IP address? I know this kind of setup is possible in f5 3-DNS as load balancing solution, but I'd just like to know if this is also possible with BIND alone in a single box.

Any ideas or workaround on this kind of setup?


Thanks in advance.

Roy
 
Old 02-17-2009, 02:28 AM   #2
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,175
Blog Entries: 1

Rep: Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042Reputation: 2042
Hi and welcome to LQ
Quote:
but I'd just like to know if this is also possible with BIND alone in a single box.
Bind "alone" can do "round-robin". That is if a client asks for acme.com it will point it to webA, the next request will point to webB, the third to webA and so on.
If you want to point to a specific server according to the location of the client you will need the geodns patch.

Regards
 
Old 02-17-2009, 09:22 AM   #3
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
If you're looking to do this for specific sets of IPs other than geographical locations, you can do it with view sections in named.conf. You define an ACL of IP addresses and then create a match-clients statement that includes the appropriate ACL.
 
  


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
Postfix mailserver through DNS for Load Balancing aravind1024004 Linux - Server 3 04-16-2008 04:34 AM
Linux server load balancing and NIC bonding question. ulver Linux - Networking 1 03-06-2008 10:35 AM
Dynamic load balancing Dns sandeep3001 Linux - Networking 1 06-05-2005 09:28 AM
Load balancing question Menestrel Linux - Networking 8 08-06-2004 12:07 PM
Network Load Balancing & DNS round robin scooby snacks Linux - Networking 1 04-19-2004 12:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 12:38 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