Caching nameserver using dnsmasq

Written By
Web Webster
Web Webster
Oct 5, 2010

[ Thanks to George
Notaras
for this link. ]

“dnsmasq is a lightweight, open-source DNS forwarder
and DHCP server. In this article we go through how to prepare the
system in order to run dnsmasq and also how to configure the latter
as a caching-only DNS server. A configuration file is also provided
as a drop-in replacement for the default dnsmasq.conf that ships
with your system. dnsmasq is available in most Linux distributions.
This article was written while using CentOS, so it is safe to say
that it also fully covers RHEL, Fedora and generally the whole Red
Hat family of operating systems and possibly Novell’s SLES and
OpenSUSE. Small modifications of the invoked commands may be needed
for Debian, Ubuntu and other systems.

“Is a caching nameserver really important?

“There is some controversy about the real benefits of using a
caching name server in a system, either desktop or server. In this
article we keep controversy out of the discussion and focus on the
performance improvement the caching of DNS information can offer to
a system while performing specific tasks. For instance, a caching
nameserver allows a web browser to acquire DNS information from the
local DNS cache, provided that this information has already been
cached, without the need to access any public DNS servers, which
results in faster web browsing. Similarly, in a server environment,
services like spam filters often need to perform many DNS queries
for the same hostnames. The latency of the communication with the
remote nameserver may add up to the total time of email
processing.”

Advertisement


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.