Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Mon Apr 04, 2011 1:09 pm 
Offline

Joined: Mon Apr 04, 2011 12:54 pm
Posts: 1
Hi,

I would like to start using linode's dns servers for a web site.
Almost all of the sites visitors are from Europe and I would like for them to be querying the fastest possible dns server and that is ns5.linode.com according to simple ping checkup.

If I input the dns servers for my domain so that ns5.linode.com is the first one, does it make the visitors browser make the query to go to the ns5 server or do they go to the primary dns server that is the ns1.linode.com?

Or is there anycasting going on?


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 1:33 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
Linode's authoritative DNS servers don't use anycast.

The thing is, authoritative DNS servers are used in an arbitrary order. It doesn't matter what order you put them in in your zone file.

Linode's DNS servers shouldn't be *that* bad for Europe. Still, if every ms of DNS performance is critical for some reason -- which it more or less shouldn't be -- it might be worth using a more Europe-focused service.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 3:50 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
While I don't have a reference handy, I believe that most of the major caching resolvers in use nowadays (certainly at levels such as ISPs) will also track the most responsive authoritative servers, so it shouldn't be too important how you order your information, and even without anycast, most caches should end up preferring the nearest or best performing server.

And of course, depending on your TTL it's not like the caches likely being used by most of your customers have to actually go to your authoritative servers all that frequently.

As mnordhoff notes, you can't really control the actual order anyway - even the top level root servers will change (round-robin or randomize) response record order over time. Plus there's no requirement that clients use the records in the order they receive them (which is good, since it lets resolvers behave as in the prior paragraph).

-- David


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 5:37 pm 
Offline
Senior Member

Joined: Sat May 03, 2008 4:01 pm
Posts: 569
Website: http://www.mattnordhoff.com/
db3l wrote:
While I don't have a reference handy, I believe that most of the major caching resolvers in use nowadays (certainly at levels such as ISPs) will also track the most responsive authoritative servers, so it shouldn't be too important how you order your information, and even without anycast, most caches should end up preferring the nearest or best performing server.


This is straying off-topic, but Google Public DNS specifically does not do this. They always choose a server randomly, to increase entropy to defend against attacks.

_________________
Matt Nordhoff (aka Peng on IRC)


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 6:22 pm 
Offline
Senior Member
User avatar

Joined: Sat Mar 24, 2007 6:09 pm
Posts: 59
Location: South Africa
db3l wrote:
... I believe that most of the major caching resolvers in use nowadays (certainly at levels such as ISPs) will also track the most responsive authoritative servers ...


Quite right. At the top of the page:

Google Books: Pro DNS and BIND

--deckert


Top
   
 Post subject:
PostPosted: Mon Apr 04, 2011 7:04 pm 
Offline
Senior Member

Joined: Wed May 13, 2009 1:18 am
Posts: 681
mnordhoff wrote:
This is straying off-topic, but Google Public DNS specifically does not do this. They always choose a server randomly, to increase entropy to defend against attacks.

Probably still more-or-less relevant in terms of performance when using Linode DNS servers. Besides, it's interesting information... I know BIND introduced RTT banding at some point, but is rolling it back in a upcoming release to an older mechanism that keeps a preference, with occasional randomness, so not completely random as Google seems to be.

Then again, it looks like Google counter-balances that with a lot of work to help ensure their cache actually satisfies the query - especially the prefetch processing - https://code.google.com/speed/public-dn ... l#prefetch - even in the absence of client queries. True, very lightly used names may not get into the prefetch queue so would be subject to random server selection on cache miss, but I expect on the whole it's still probably not that critical or worth the effort to attempt to control the server selected for the end user. And of course, just having a large enough TTL helps minimize cache misses even further.

-- David


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group