Is it true that Ubuntu doesn't have DNS cache by default and what options I have to enable it ? Is bind9 option that can enable caching of DNS ?
Ubuntu – DNS cache on Ubuntu
dns
dns
Is it true that Ubuntu doesn't have DNS cache by default and what options I have to enable it ? Is bind9 option that can enable caching of DNS ?
Best Answer
Ubuntu Desktop have dnsmasq-base package built-in in NetworkManager, but with the dns cache function disabled, you can check in your logs:
you can install dnsmasq if you are using Ubuntu Server and this have cache enabled by default.
If you are in Ubuntu Desktop, you can enable cache in dnsmasq-base/network-manager with this:
add one file in
/etc/NetworkManager/dnsmasq.d/
add this line:
and after this in command line:
try to NOT install dnsmasq in Ubuntu Desktop, enable caching with dnsmasq-base. If you are in Ubuntu Server, install dnsmasq if is not already installed.