Operating System - HP-UX
1832657 Members
2977 Online
110043 Solutions
New Discussion

DNS BIND Question (Load Balancing)

 
royrsb
New Member

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 a 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
2 REPLIES 2
VK2COT
Honored Contributor

Re: DNS BIND Question (Load Balancing)

Hello,

It is possible but not pretty.

Current versions of BIND do not have
what you want exactly.

Hint: set up two views (known by names
split-horizon or split-zones), and
define two groups of IP addresses that
they can serve. In the first view,
define "match clients" clause to
provide answer WEB_A to certain subnets
or hosts. Likewise, second view
would give answer WEB_B to other subnets...

Multiple views are part of BIND 9.x.

Cheers,

VK2COT
VK2COT - Dusan Baljevic
Steven E. Protter
Exalted Contributor

Re: DNS BIND Question (Load Balancing)

Shalom Roy,

First, DNS is not a very intense application with a lot of data traffic or CPU need.

It has a master/slave configuration that provides high availability. If the master server is offline or unavailable or busy, the slave gets the traffic.

The way DNS is done on the public Internet, provides some amount of load balancing by itself.

Is there a way to build two regions? Yes, you can have local servers with slightly different configuration.

On the public internet that will show up as inconsistent configuration.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com