[From nobody Thu Jun 25 05:54:45 2020
Received: from mail-lj1-x22b.google.com ([2a00:1450:4864:20::22b])
 by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux))
 id 1feldM-0001Qi-Bm
 for openwrt-devel@lists.openwrt.org; Sun, 15 Jul 2018 18:20:37 +0000
Received: by mail-lj1-x22b.google.com with SMTP id f8-v6so10391901ljk.1
 for &lt;openwrt-devel@lists.openwrt.org&gt;; Sun, 15 Jul 2018 11:20:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kempniu.pl; s=google;
 h=sender:date:from:to:cc:subject:message-id:references:mime-version
 :content-disposition:content-transfer-encoding:in-reply-to
 :user-agent; bh=AyPlckky5nQY9aEoz6CwQ2JxG1kA64MTcVumeirPa50=;
 b=MbmrGf/IKpbk8vd9YGvyzFUTOB5Bgl9URpV3WGcjDoOzgISOUoyenKZkTmVOjX4ylW
 eVcd/fJytL6/oGTMsnoYvf61ySt4v1/wbHPmk/9v0yL/jMAvUceSuVtoR+vA8bwFsXx8
 tqZMzCNnHZqHrPQVGm38Wj7uoAKXHTDlsAZVE=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:sender:date:from:to:cc:subject:message-id
 :references:mime-version:content-disposition
 :content-transfer-encoding:in-reply-to:user-agent;
 bh=AyPlckky5nQY9aEoz6CwQ2JxG1kA64MTcVumeirPa50=;
 b=ZmeV/BZCZN8e8E1YVujYetkabIODFIGRaYc9GFYQUQVHS8d4sHuDkukeUg3c+kZKQU
 q/WGkDwHmtMeIIvLLWE0zqparLZjy3kv6h5mtlnMpoc2/Meqx90ilPr/PfTVjiXsji/Y
 IFSQgI5oJ2bNXxMd0NewcfLwmVeYfJmgS/FnoH675qWfcF6BTCcRkPW70McLMp5i2AaP
 Y7xFgViwPJFt0pD0GCUt5YTUVgpLaSjXypfw7eKR7S9zrHRfZZAeFUhS8Q/YIyQW7ztV
 CFSRhCPhCCYgPLUZTAyTpkzE/NUEEpbNt0NcGVLHqvxKnXpyXi0/xopucHRlqN1P9y+I
 jF5A==
X-Gm-Message-State: AOUpUlGIFXOYHZ7oOk43sJLPIcjCvbU9PLPl7G02+7Z7uyTBtF5dvmTo
 SHntVd3MqOx6PMr1FnOoZypE1g==
X-Google-Smtp-Source: AAOMgpdUWXXh/sADhsv027NfIFlhZmkZNJbMI2E2qjSdIe3tCykwDhXBpQiEEcqkcGRLyBOIqbIWYA==
X-Received: by 2002:a2e:1984:: with SMTP id 4-v6mr8641325ljz.35.1531678822734; 
 Sun, 15 Jul 2018 11:20:22 -0700 (PDT)
Received: from larwa.localdomain ([2001:470:64df:111::7df])
 by smtp.gmail.com with ESMTPSA id n19-v6sm4537527lja.87.2018.07.15.11.20.21
 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);
 Sun, 15 Jul 2018 11:20:22 -0700 (PDT)
Sender: =?UTF-8?B?TWljaGHFgiBLxJlwaWXFhA==?= &lt;kempniu@kempniu.pl&gt;
Date: Sun, 15 Jul 2018 20:20:19 +0200
From: =?utf-8?B?TWljaGHFgiBLxJlwaWXFhA==?= &lt;lede@kempniu.pl&gt;
To: Hans Dedecker &lt;dedeckeh@gmail.com&gt;
Cc: openwrt-devel &lt;openwrt-devel@lists.openwrt.org&gt;
Subject: Re: [OpenWrt-Devel] [PATCH] odhcpd: allow specifying lease trigger
 mode
Message-ID: &lt;20180715182019.GA1031@larwa.localdomain&gt;
References: &lt;mailman.6910.1530045246.25356.openwrt-devel@lists.openwrt.org&gt;
 &lt;CAJLcKsHfAea_va3tCSWShTW=EY768EmiDTfWuxbRba_Bm604iw@mail.gmail.com&gt;
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
In-Reply-To: &lt;CAJLcKsHfAea_va3tCSWShTW=EY768EmiDTfWuxbRba_Bm604iw@mail.gmail.com&gt;
User-Agent: Mutt/1.10.0 (2018-05-17)
X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 
X-CRM114-CacheID: sfid-20180715_112036_486698_141D0AFA 
X-CRM114-Status: UNSURE (   9.59  )
X-CRM114-Notice: Please train this message.
X-Spam-Score: 0.0 (/)
X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary:
 Content analysis details:   (0.0 points)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -0.0 RCVD_IN_DNSWL_NONE     RBL: Sender listed at http://www.dnswl.org/, no
 trust [2a00:1450:4864:20:0:0:0:22b listed in] [list.dnswl.org]
 -0.0 SPF_PASS               SPF: sender matches SPF record
 0.1 DKIM_SIGNED            Message has a DKIM or DK signature,
 not necessarily valid
 -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's
 domain
 -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature
 0.1 FROM_EXCESS_BASE64     From: base64 encoded unnecessarily

Hi,

&gt; What usecase do you want to cover by calling the lease script every time ?

I want to assign a FQDN to every device which gets an IP address from
odhcpd.  My lease script updates DNS records, generating MAC-based names
for devices which do not provide hostnames in their DHCP requests.  The
missing piece of the puzzle is thus a way of triggering the lease script
when an IP address is leased to a host which did not provide a hostname
in its DHCP request (and when such a lease is deleted).  The only way I
can think of to achieve that without patching odhcpd is to resort to
some sort of polling, but it feels a bit clumsy to me since an arbitrary
amount of time may pass between two DHCP events and I am trying to make
the relevant DNS zone match the lease database as closely as possible at
any given time.

-- 
Best regards,
Michał Kępień

]