Refreshing a blocklist can write a list file. Logging every DNS query creates a different stream of writes. Check them separately before changing flash storage settings. This guide covers AdGuard Home running as a service. If another updater is active, first identify which process manages the subscription.
Schedule weekly updates and locate the files
In the AdGuard Home interface, set the filter update interval to 7 days, save and reopen the settings to confirm. For releases configured in YAML, back up the configuration, stop the instance and set filtering.filters_update_interval to 168 hours before restarting. Check cron for another job refreshing the same subscription. Keep one scheduler. The interval controls periodic checks; outages, downtime and manual refreshes affect the actual update time.
Read --work-dir or -w and the configuration file path from the startup command. Many installations keep subscription files under data/filters in the working directory. Compare the files before and after an update with ls -lt. In that directory, run df -k . and mount. A file on the internal overlay can write to flash when replaced. Inspect logs and the actual work and temporary directories. Free space under /tmp does not prove the whole update stays in RAM. Check query logs and statistics separately, including their retention.
Before moving data to external storage, confirm that the volume mounts at boot. Stop the service, back up its configuration and work directory, move the files, and check ownership and startup arguments. After reboot, verify the mount again. If the volume is missing, prevent writes to the underlying internal directory. For a RAM-only layout, plan how to restore a working list after power loss.
Test a failed subscription without disturbing the household filter
On a separate instance, serve a small test list with two blocked names. Add one allowed name as a control. After a successful refresh, record the status, file path and sha256sum. Make the test URL return 404 and refresh on that instance again. Compare the error, update count, old hash and actual answers for the three names. Using different blocked names before and after reduces the effect of cached DNS answers.

The isolated instance ran AdGuard Home 1.0.0 with DNS caching disabled. The hash of 777.txt stayed the same, the second blocked name still returned NXDOMAIN, and the allowed name resolved to 192.0.2.48. The test covers this particular HTTP 404 response. Timeouts, a full disk and a first boot without an old file are separate cases.
The recording ends by restoring the test source and adding new.sample.test. One filter updates and the new name returns NXDOMAIN. If filtering stops after a real subscription fails, restore the last working list and storage location, save the error log and investigate the upstream or free space. Smart plug offline after DNS filtering? Allow one hostname for one client
Make the test subscription return 404 and restore it
The recording starts in an OpenWrt SSH session. Two blocked names test the previous list, then a new name tests recovery. English narration includes English and Chinese subtitles.
Run the commands over SSH on the isolated router, from the dedicated test work directory. The lab HTTP server serves www/filter.txt, and 777 is the temporary subscription ID. A public subscription file belongs to its publisher.
refresh() {
wget -qO- --header='Content-Type: application/json' \
--post-data='{"force":true,"whitelist":false}' \
http://127.0.0.1:15865/control/filtering/refresh
}
refresh
sha256sum data/filters/777.txt
nslookup -type=A ads.sample.test 127.0.0.1:15866
mv www/filter.txt www/filter.off
wget -O /dev/null http://127.0.0.1:15863/filter.txt
The preceding request should return 404. Now compare the saved list hash, the allowed name and the new entry after recovery.
refresh
sha256sum data/filters/777.txt
nslookup -type=A telemetry.sample.test 127.0.0.1:15866
nslookup -type=A allowed.sample.test 127.0.0.1:15866
mv www/filter.off www/filter.txt
echo '||new.sample.test^' >> www/filter.txt
refresh
nslookup -type=A new.sample.test 127.0.0.1:15866
Comments