Results 1 to 3 of 3
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 ...
- 02-17-2009 #1Just Joined!
- Join Date
- Feb 2009
- Posts
- 1
BIND DNS 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 that can make 2 regions/profiles 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
- 02-18-2009 #2Linux Newbie
- Join Date
- Feb 2009
- Posts
- 99
named.conf add this option
acl "ip_pool_A" { <--- your dns client ip address
10.1.1.140;
241.12.1.0/24;
};
acl "ip_pool_B" { <--- your dns client ip address
10.1.1.150;
61.1.5.0/24;
};
view "s1" {
match-clients { ip_pool_A; };
zone "cluster.com" {
type master;
file "a.cluster.com.zone"; ### WEB_A A 1.1.1.1
### WEB_B A 2.2.2.2
};
};
view "s2" {
match-clients { ip_pool_B; };
zone "cluster.com" {
type master;
file "b.cluster.com.zone"; ### WEB_A A 3.3.3.3
### WEB_B A 4.4.4.4
};
};
rndc reload and try to use nslookup ^__^
- 02-18-2009 #3
DNS does not support load balancing. The most you will get out of DNS is round - robin and then if one of the servers dies then half of your requests will not be answered. Load balancing is not only to balance the load of your servers but also for failover. DNS does not have this option.


Reply With Quote