From 9c70993472460153970d3a0930bd3f2f126fd7a2 Mon Sep 17 00:00:00 2001 From: Stanislav Chzhen Date: Tue, 18 Apr 2023 15:12:40 +0300 Subject: [PATCH] Pull request 165: AG-20352-leases-db Merge in GO/adguard-home-wiki from AG-20352-leases-db to master Squashed commit of the following: commit a4df580471d51ce07e4dc30c6914b54a9f38ffb6 Merge: 7b427f4 84ee18c Author: Stanislav Chzhen Date: Tue Apr 18 15:11:32 2023 +0300 Merge branch 'master' into AG-20352-leases-db commit 7b427f47704340a8ec0a22c41c69b1ddbb8e8ece Author: Stanislav Chzhen Date: Mon Apr 17 16:59:55 2023 +0300 DHCP: imp note commit 09f671381070d492a14343f142601bd2f48e2430 Author: Stanislav Chzhen Date: Mon Apr 17 16:47:56 2023 +0300 DHCP: add file format note commit 16e3b077d94640c005aea8ebce37dd0426fe220b Author: Stanislav Chzhen Date: Mon Apr 17 15:37:01 2023 +0300 all: upd leases db --- DHCP.md | 8 ++++++++ FAQ.md | 4 ---- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/DHCP.md b/DHCP.md index 9fbf076..777b08f 100644 --- a/DHCP.md +++ b/DHCP.md @@ -6,6 +6,7 @@ * [The `dhcp.dhcpv4.options` array field](#config-4) * [DHCPv6 options](#config-6) * [Automatic hosts](#autohosts) + * [Stored leases](#storedleases) AdGuard Home can be used as a DHCP server. This page describes how to do that. @@ -218,3 +219,10 @@ you can reach it over HTTP on the host `http://workstation.lan`. You can also set a custom TLD or domain name using the `dns.local_domain_name` field in the [configuration] file. + + + +## Stored leases + +DHCP leases stored in `data/leases.json`. The file format is not stable and +may change in the future releases. diff --git a/FAQ.md b/FAQ.md index 90ea81f..b12bbb0 100644 --- a/FAQ.md +++ b/FAQ.md @@ -492,8 +492,6 @@ Linux and Windows for AMD64 CPUs. cp -r ./AdGuardHome.yaml ./data ~/my-agh-backup/ ``` - (Add `./leases.db` if it is present.) - 1. Unpack the AdGuard Home archive to a temporary directory. For example, if you downloaded the archive to your `~/Downloads` directory and want to unpack it to `/tmp/`: @@ -571,8 +569,6 @@ In all examples below, the PowerShell must be run as Administrator. Copy-Item -Path .\AdGuardHome.yaml, .\data -Destination $newDir -Recurse ``` - (Add `.\leases.db` if it is present.) - 1. Unpack the AdGuard Home archive to a temporary directory. For example, if you downloaded the archive to your `Downloads` directory and want to unpack it to a temporary directory: