Find the answer to your Linux question:
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 ...
  1. #1
    Just 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

  2. #2
    Linux 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 ^__^

  3. #3
    Linux Guru Lazydog's Avatar
    Join Date
    Jun 2004
    Location
    The Keystone State
    Posts
    2,281
    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.

    Regards
    Robert

    Linux
    The adventure of a life time.

    Linux User #296285
    Get Counted

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...