DNS caching disabled for 12.10...still

Daniel J Blueman daniel at quora.org
Mon Oct 8 13:22:30 UTC 2012


On 8 October 2012 21:10, Mathieu Trudel-Lapierre <mathieu-tl at ubuntu.com> wrote:
> On Sun, Oct 7, 2012 at 11:35 PM, Daniel J Blueman <daniel at quora.org> wrote:
> [...]
>> Good tip on the workaround, Mathieu. Looks like this doesn't work in
>> Ubuntu 12.10 pre-release here:
>>
>> # echo cache-size=400 >/etc/NetworkManager/dnsmasq.d/cache
>> <reboot>
>> $ ps -ef | grep dnsmasq
>> nobody    2057  1128  0 11:29 ?        00:00:00 /usr/sbin/dnsmasq
>> --no-resolv --keep-in-foreground --no-hosts --bind-interfaces
>> --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid
>> --listen-address=127.0.1.1 --conf-file=/var/run/nm-dns-dnsmasq.conf
>> --cache-size=0 --proxy-dnssec
>> --enable-dbus=org.freedesktop.NetworkManager.dnsmasq
>> --conf-dir=/etc/NetworkManager/dnsmasq.d
>
> You can't see it on the command-line. Things are evaluated in order;
> command-line parameters first, up to the --conf-dir parameter, and
> then the files in that directory will be looked at and configuration
> taken into account. However, it won't change the actual command-line
> for the application, since it's indeed how it was started.
>
> To see the result, you'll want to kill dnsmasq with the SIGUSR1 signal
> -- this will force it to write out statistics to syslog. This is also
> the way to list the nameservers used by dnsmasq.

Great; adding this file back in, caching is working as expected.

Thanks,
  Daniel
-- 
Daniel J Blueman




More information about the Ubuntu-devel-discuss mailing list