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

Which is the best practise to reduce DNS latency? I'm using the beautiful powerdns DNS server, and i would like to lower down latency between internet client requests and the DNS server response.

I know that working on the DNS zone backend (I'm using mysql) is one of the steps to follow to improve latency, but I'm courious to know if there is also a good rule of thumb to make DNS system resolving lightening fast.

Rising the cache TTL for DNS records is the only solution? Thank you.

share|improve this question

migrated from Jul 23 '12 at 5:43

This question came from our site for professional and enthusiast programmers.

I think someone should explain why voted to "close" this question. Clicking "close" without explain why is not good. – dAm2K Jul 16 '12 at 14:17
up vote 1 down vote accepted

First of all, if you want to make your DNS server answer queries in as little time as possible, I would stay away from an RDBMS backend. When the creators of bind decided to load DNS zone files into a purpose-built database-like structure in RAM at daemon startup instead of using an external database, they were on to something good!

If you like the convenience of having your zone data in MySQL, then you can use powerdns as a stealth master, bind servers as slaves, and publish NS records only for the bind servers.

share|improve this answer
Very good point. I'll try to use bind as DNS frontend and let you know. Thanks. – dAm2K Jul 13 '12 at 1:26
Thank you. The stealth master technique is cool! – dAm2K Jul 16 '12 at 14:15

Your Answer


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