Thursday, July 2, 2020

Debian Buster: configure local dns cache for Indihome user

To make your debian faster to lookup name server, it is better to use local dns cache.


Install dnsmasq
# apt-get install dnsmasq

Install NetworkManager
# apt-get install network-manager

Edit /etc/NetworkManager/NetworkManager.conf
[main]
plugins=ifupdown,keyfile
dns=dnsmasq

Edit /etc/NetworkManager/system-connections/[your connection profile]
[ipv4]
dns=8.8.8.8;1.1.1.1;
dns-search=8.8.8.8;1.1.1.1;
method=auto

Restart your network manager
# systemctl restart network-manager

Try your local dns cache
# dig garasiku.my.id @localhost
# dig google.com @localhost

Tested on Debian 10.4

No comments:

Post a Comment