DNS querying in Round robin fashion

James Sebastian spamtrap at jncasr.ac.in
Mon Feb 23 06:03:01 UTC 2004


Hi all,

I am trying to set up a DNS server to query a set of IP address in
round robin fashion. I tried setting it up using latest BIND 9 and was
not successful. Some googling showed me that rrset-order will set a
explicit round robin and it is not yet supported in Bind 9. So I
installed latest BIND 8 and put the following named.conf file and zone
file. But the response I get only in a random order when I try to ping
the server using host name (say test1.test.com).

I expect from the google responses that round robin should be default
and my queries to hp110 (used in eg:) should reply answers in round
robin fashion..


I tried searching net and could not find out why the response is not
round robin. Please help me in this.

OS Version:RH AS 2.1
Bind Version: 8.4.4

/etc/amed.conf
options {
        directory "/var/named";

rrset-order {
        class IN type A name "*.tcsfloating
        };
};

zone "." {
        type hint;
        file "named.ca";
};
zone "test.com"{
        type master;
        file "named.clu";
};

zone "localhost"{
        type master;
        file "named.local";
};

zone "45.22.172.in-addr.arpa"{
     type master;
     file  "named.rev";
};

zone "0.0.127.in-addr.arpa"{
        type master;
        file "named.localrev";
};

include "/etc/rndc.key";
---------------------- 
/var/named/named.clu
-------------------------

; name server data file
$TTL    0
$ORIGIN test.com.
; NAME          TTL     CLASS   TYPE    RDATA
;
; setting default domain to "test.com"
;
@       9999999         IN      SOA     rhsa3.test.com.      
root.rhsa3.test.com (
                        2000009 ; serial
                        3600 ; refresh
                        300 ; retry
                        3600000 ; expire
                        0 ; default_ttl
                        )

@                       IN      NS      rhsa3.test.com.
loopback        9999999         IN      A       127.0.0.1
tcsrhsa3                IN      A       172.22.45.57
tcshp110                IN      A       172.22.45.55
hp110                   IN      A       127.0.0.2
hp110                   IN      A       127.0.0.3
hp110                   IN      A       127.0.0.4
hp110                   IN      A       127.0.0.5
hp110-1                 IN      CNAME   hp110.test.com.
hp110-2                 IN      CNAME   hp110.test.com.
hp110-3                 IN      CNAME   hp110.test.com.
hp110-4                 IN      CNAME   hp110.test.com.


Thanks,

James Sebastian


More information about the bind-users mailing list