[Dnsmasq-discuss] DNS from dhcp-host while client is offline

john doe johndoe65534 at mail.com
Sun Oct 3 15:01:50 UTC 2021

On 10/3/2021 3:24 PM, Alkis Georgopoulos wrote:
> Hello Geert and all,
> unfortunately this feature isn't convenient when you want to `ping pc`
> and wait until it's up; or when you check some system logs and see an IP
> and you want to run `host IP` to see which hostname it maps to, yet that
> PC isn't up at that time; or in certain multiple DHCP
> servers/failover/balancing scenarios.
> If there's no way to maintain a single file with that information, then
> I'll use a bash script to convert dhcp-hosts to addn-hosts.

The option 'dhcp-host', uses the leases recorded in the leases file
which are leasetime dependent.

Using 'addnhost' will not have this limitation.

John Doe

More information about the Dnsmasq-discuss mailing list