LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-21-2011, 03:36 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
BIND 9.7: does it optimise amongst forwarders like dnsmasq?


Hello

Doe BIND 9.7 optimise the use of forwarders as dnsmasq does?

The logs show that when dnsmasq initialises it contacts all its upstream nameservers and selects one to use. After that it can be seen switching to another upstream nameserver from time to time. Presumably this shows that it is dynamically choosing the best performing upstream DNS server.

Does BIND 9.7 do something similar? Here's from O'Reilly's "DNS and BIND 5th Edition": "On BIND 8 nameservers from 8.2.3 on, and BIND 9 nameservers from 9.3.0 on, you don't need to list forwarders more than once. These nameservers don't necessarily query the forwarders in the order listed; they interpret the nameservers in the list as "candidate" forwarders and choose which one to query first based on roundtrip time, the time it took to respond to previous queries". That sounds promising and could be similar to what dnsmasq seems to do.

The question is important because our ISPs' nameservers are at best the fastest but are inconsistent and are sometimes unavailable. dnsmasq-like behaviour allows us to get optimal name resolution by listing all our ISPs' nameservers and some public ones.

Best

Charles
 
Old 12-15-2011, 04:27 AM   #2
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Solved.

The answer is "yes". From docstore.mik.ua:

BIND name servers use a metric called roundtrip time, or RTT,to choose between name servers authoritative for the same zone. Roundtrip time is a measurement of how long a remote name server takes to respond to queries. Each time a BIND name server sends a query to a remote name server, it starts an internal stopwatch. When it receives a response, it stops the stopwatch and makes a note of how long that remote name server took to respond. When the name server must choose which of a group of authoritative name servers to query, it simply chooses the one with the lowest RTT.

Before a BIND name server has queried a name server, it gives it a random RTT value, but lower than any real-world RTT. This ensures that the BIND name server queries all of the name servers authoritative for a given zone in a random order before playing favorites.

On the whole, this simple but elegant algorithm allows BIND name servers to "lock on" to the closest name servers quickly and without the overhead of an out-of-band mechanism to measure performance.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
dnsmasq: failed to bind DHCP server socket: Address already in use taske Linux - Networking 2 11-08-2009 05:40 PM
dnsmasq as a replacement for BIND alex23 Linux - Networking 1 04-23-2009 01:51 PM
'forwarders' stephencummings Linux - Newbie 4 11-27-2008 06:54 AM
Getting BIND to mimic dnsmasq Yalla-One Linux - Networking 4 03-29-2008 08:47 AM
BIND 9.2.3 doesn't accept ACL's in forwarders statement? Edaph Linux - Networking 1 05-15-2004 09:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:09 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration