Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

In a specific setup (Specific Website) DNS server is getting request for specific record ( thus it's confident that the request will be followed by series of others (,,

Is it possible to gain reduction in these other requests if their RRs are included in additional section of DNS response (preemptive responding)? I.e.

  www A

  www A IN

  NS IN ns1
  NS IN ns2

  x   A IN
  y   A IN
  z   A IN

The intention is to use such pre-populated responses:

  1. to speed up overall interaction with domain DNS server is serving (primary objective).
  2. to reduce DNS server load (secondary objective).

Is there any DNS service provider that is expert in this type of optimizations? Or let me know about argumented write-up on the topic and why the above is not possible.

share|improve this question
Can you be specific about your specific setup and specific record? It's pretty hard to help if you're not specific. – voretaq7 Aug 30 '11 at 1:15
Seconding @voretaq7's comment about details. Usually in DNS land the round trip time itself and the TTL are the biggest things(read: several orders of magnitude) you can use to improve performance. You don't mention why those won't help or what you've already done there. – polynomial Aug 30 '11 at 1:23
This is explicitly tying the DNS protocol to HTTP-only? – Steve-o Aug 30 '11 at 4:54
Sorry I do not know what HTTP-only DNS protocol is ;) And yes, the question above is about DNS working to help HTTP client have less questions to DNS, preferably single request and sigle response containing all information HTTP client will need in future. – myroslav Aug 30 '11 at 7:26
I've updated question with specific details. – myroslav Aug 31 '11 at 10:11

It can never be confident of others. For example:

website ( is lookup one, then is #2) has 20 images, all hosted on different sites.

DNS can not predict this without loading the HTML first, but thats what the client is for. The client's browser will decode the HTML and request all the sources to the images, usually all at once.

What if the page changes and they update all the links of images?

BL: It's never going to be able to PREDICT dns requests, but it CAN cache prevoius requests.

The TTL of the record (expiration time) will let the DNS server when to purge that record from the cache.

That's just about it.

share|improve this answer
Controlling the and index.html is the key. The question is not about PREDICTION, but about KNOWLEDGE, what requests follow the initial one. If one knows what is request pattern, can one pack as many responses in initial answer? – myroslav Aug 30 '11 at 6:55
I've updated question with specific details. DNS server is not expected to be "intellectual". I just want to inject x, y, and z records whenever there is request for www record. – myroslav Aug 31 '11 at 10:13
I don't think this is possible without custom dns software. I mean, if it was, everybody would be doing this. Sorry. – U4iK_HaZe Aug 31 '11 at 10:39
Is this just round robin? – U4iK_HaZe Aug 31 '11 at 10:44
The x, y, and z RRs are different names and different IPs. They represent addresses of subdomains hosting resources for the webpages hosted on primary www sobdomain. I understand that it is very custom, and requesting to point me into direction of DNS provider that does that or does not, and explains why it is not possible. – myroslav Aug 31 '11 at 12:13

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.