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

Olaf Hering olaf at aepfle.de
Fri Oct 8 12:04:14 UTC 2021


On Sun, Oct 03, Alkis Georgopoulos wrote:

> Is there any way for dnsmasq to put all the dhcp-hosts into its DNS view
> even when these clients are offline?

Maybe you asking for this:

  dnsdomain=home.arpa
  hostname=esprimo
  MAC=00:a0:d1:c8:8e:cb
  ipv4=172.16.0.6
  ipv6=fd00:172:16::02a0:d1ff:fec8:8ecb

  tee -a dnsmasq.conf <<_EOF_
  host-record=${hostname}.${dnsdomain},${ipv4},${ipv6},123
  dhcp-host=${MAC},id:*,set:${hostname},${ipv4},${hostname},216000
  _EOF_

Olaf



More information about the Dnsmasq-discuss mailing list