Open alexeys85 opened 2 years ago
Hello! This TTL is controlled by the (rather badly named) blocked_response_ttl
setting. The default value is low so that if you, say, unblock a domain, the clients will see the change quicker.
Which TTL to use for DHCP leases is a tricky question, since technically leases can be deleted or reset, and you probably don't want clients to cache the value for a long time.
Which TTL to use for DHCP leases is a tricky question, since technically leases can be deleted or reset, and you probably don't want clients to cache the value for a long time.
Well, that's true. But may be you have plans to support dhcp.leases
file to determine lease time?
We'll consider the options here, yes.
Perfect, thanks!
Prerequisites
Issue Details
Expected Behavior
PTR ttl values respect dhcp lease time for local hosts
Actual Behavior
PTR ttl value is always 10. A a result some hosts (Aruba AP11 access point) generate PTR requests every 10 seconds spamming the query log.![Screenshot](https://user-images.githubusercontent.com/36696213/145704563-a93042cb-13bf-4682-8720-a082e483a29a.png)
Additional Information
I use AdGuardHome as only a DNS server and preinstalled dnsmasq and DHCP server. Some of my local hosts in my home network has static leases with lease time 7 days which I clearly see in
/tmp/dhcp.leases
file. For example:1639872243 xx:xx:xx:xx:xx:xx 192.168.1.4 Aruba xx:xx:xx:xx:xx:xx
which is more than 6 days from now.Is it possible for AdGuardHome to use this file with right ttl values when forming PTR answers? Or may be there is any other workaround?