bind weighted round robin not working

dns at cornholio.nl dns at cornholio.nl
Sat Jul 16 20:10:52 UTC 2011


Hi,

I’ve got a problem getting weighted round robin dns to work. What I need is
ip adress 1 getting twice the hits of ip address 2, however making multiple
entries of ip address 1 in my zonefile (according to
https://lists.isc.org/mailman/htdig/bind-users/2007-April/066196.html ) does
not seem to help. See below for my troubleshooting configuration and
testing, can anyone tell what’s going wrong ?

root at Kiwi:/var/named]# cat /etc/named.conf // // named.conf // // Provided
by Red Hat bind package to configure the ISC BIND named(8) DNS // server as
a caching only nameserver (as a localhost DNS resolver only).
//
// See /usr/share/doc/bind*/sample/ for example named configuration files.
//

options {
        listen-on port 53 { 127.0.0.1; };
        listen-on-v6 port 53 { ::1; };
        directory       "/var/named";
        dump-file       "/var/named/data/cache_dump.db";
        statistics-file "/var/named/data/named_stats.txt";
        memstatistics-file "/var/named/data/named_mem_stats.txt";
        allow-query     { localhost; };
        recursion yes;

        dnssec-enable yes;
        dnssec-validation yes;
        dnssec-lookaside auto;

        /* Path to ISC DLV key */
        bindkeys-file "/etc/named.iscdlv.key";

        managed-keys-directory "/var/named/dynamic"; };

logging {
        channel default_debug {
                file "data/named.run";
                severity dynamic;
        };
};

zone "." IN {
        type hint;
        file "named.ca";
};

zone "test.nl" {
        type master;
        file "test.nl.hosts";
};

include "/etc/named.rfc1912.zones";
include "/etc/named.root.key";

root at Kiwi:/var/named]# cat /var/named/test.nl.hosts $TTL 3600 test.nl.     
IN      SOA     localhost. dns.cornholio.nl. (
                          2011061406
                          1800
                          14400
                          604800
                          3600 )
test.nl.             NS     localhost.
test.nl.             A      80.57.38.19
test2                   IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       1.1.1.1
                        IN      A       2.2.2.2 

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 1.1.1.1
Name:   test2.test.nl
Address: 2.2.2.2

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 2.2.2.2
Name:   test2.test.nl
Address: 1.1.1.1

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 1.1.1.1
Name:   test2.test.nl
Address: 2.2.2.2

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 2.2.2.2
Name:   test2.test.nl
Address: 1.1.1.1

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 1.1.1.1
Name:   test2.test.nl
Address: 2.2.2.2

root at Kiwi:/var/named]# nslookup test2.test.nl
Server:         127.0.0.1
Address:        127.0.0.1#53

Name:   test2.test.nl
Address: 2.2.2.2
Name:   test2.test.nl
Address: 1.1.1.1

Regards,

Marc


More information about the bind-users mailing list