Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

Is there any way to use pfsense as caching DNS server. It will resolve domains starting from root servers and will cache them for consequent hits.

I tried DNS servers package on pfsense 1.2.2, which I guess uses WAN dns serversby default.

share|improve this question
add comment

3 Answers

up vote 0 down vote accepted

pfsense has a DNS cache, it is called dnsmasq. It doesn't start from the root servers. By default, it will take the DNS from the WAN DHCP server, but you can override that from the web page. I would point the box to an open DNS server, like

Google's at, Level3 at, OpenDNS at,

The root servers are busy, so I wouldn't suggest starting with them. Use the addresses above and you should get better performance.

share|improve this answer
this is a workaround, but not suitable for my situation. btw thanks. –  dereli Jan 21 '10 at 9:18
this should not be the accepted answer, dnsmasq does not cache responses –  levinalex 4 hours ago
add comment

A pfSense forum thread suggests installing the DNS package for tinydns, and then adjusting the cache size to suit your needs.

share|improve this answer
This did not work for my case. –  dereli Nov 23 '09 at 6:42
Why did it not work? –  Zanchey Nov 23 '09 at 7:26
By "did not work", I meant DNS server did not resolve host names. –  dereli Nov 24 '09 at 14:49
TinyDNS is an authoritative DNS server only. The DJBDNS package that it came from has a separate program that does recursive DNS called dnscache. A 'caching DNS server' is usually what people call something like BIND without any local domains. –  Walter Dec 30 '09 at 22:03
add comment

You can use the Unbound pacakge for this.


share|improve this answer
I used this. Works very well on pfsense 2.1 –  levinalex 4 hours ago
add comment

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.