Setting local-ttl in pihole v6

Expected Behaviour:

I used to be able to set the local-ttl for local records to something like 120-300 seconds to prevent my array of local services filling the query log with tens of thousands of requests daily due to a default 0 ttl.

Actual Behaviour:

I can no longer find this setting in pihole v6. Previously it had to be set via adding 'local-ttl = ' to a config file in etc/dnsmasq.d/

This file no longer exists/is read. local-ttl also does not exist in pihole.toml and is automatically removed if manually added.

I don't know where I should set this now.

Pihole core v6.0.3, docker tag 2025.02.3

1 Like

For a single line, you can use misc.dnsmasq_lines under All settings » Miscellaneous.

If instead you want to keep a bunch of configuration lines in your own custom file under /etc/dnsmasq.d/, you could also enable misc.etc_dnsmasq_d.

All settings is available in Expert mode only.

2 Likes

Excellent, thanks!

Adding 'local-ttl=300' to 'misc.dnsmasq_lines' worked perfectly.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.