I am puzzled by the rotate option in /etc/resolv.conf. From the man page:
rotate
sets RES_ROTATE in _res.options, which causes round robin selection of
nameservers from among those listed. This has the effect of spreading
the query load among all listed servers, rather than having all
clients try the first listed server first every time.
$ cat /etc/resolv.conf
options rotate
nameserver 8.8.8.8
nameserver 8.8.4.4
However if I run multiple tests with dig, I always hit the same
server, the first server:
$ seq 1 100 | xargs dig +noall +stats google.com | grep SERVER | uniq -c
101 ;; SERVER: 8.8.8.8#53(8.8.8.8)
To demonstrate, if I swap the position of the first and second nameserver:
$ cat /etc/resolv.conf
options rotate
nameserver 8.8.4.4
nameserver 8.8.8.8
And rerun the test:
$ seq 1 100 | xargs dig +noall +stats google.com | grep SERVER | uniq -c
101 ;; SERVER: 8.8.4.4#53(8.8.4.4)
That does not look like round-robin. What am I missing?
Regards,
- Robert
--
Central West End Linux Users Group (via Google Groups)
Main page: http://www.cwelug.org
To post: [email protected]
To subscribe: [email protected]
To unsubscribe: [email protected]
More options: http://groups.google.com/group/cwelug