Pages

Oct 11, 2018

[HDGEM] How to check if DNS Caching is Enabled on Ubuntu

$ ps ax | grep dnsmasq

$ ps ax | grep dnsmasq
 1409 ?        S      0:02 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/NetworkManager/dnsmasq.pid --listen-address=127.0.1.1 --cache-size=0 --conf-file=/dev/null --proxy-dnssec --enable-dbus=org.freedesktop.NetworkManager.dnsmasq --conf-dir=/etc/NetworkManager/dnsmasq.d
 1669 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
 1670 ?        S      0:00 /usr/sbin/dnsmasq --conf-file=/var/lib/libvirt/dnsmasq/default.conf --leasefile-ro --dhcp-script=/usr/lib/libvirt/libvirt_leaseshelper
24520 pts/16   S+     0:00 grep --color=auto dnsmasq

In the output from the command, you will be able to see a field called "cache-size". Check its value. If the value is zero, it means that caching is disabled on the system.


--
Posted By Blogger to HDGEM at 3/01/2017 12:37:00 PM

QuickBooks Self-Employed

Bigger tax refunds. Better organization. Manage your deductions with QuickBooks Self-Employed .