[Dnsmasq-discuss] DNS from dhcp-host while client is offline
Alkis Georgopoulos
alkisg at gmail.com
Fri Oct 8 16:02:31 UTC 2021
Hi Olaf,
yeah I too settled for a sed command that transforms a dhcp-hosts file
into an addn-hosts file.
I maintain the main information in the dhcp-hosts file and then I run
the sed command.
Thank you,
Alkis
On 10/8/21 3:04 PM, Olaf Hering wrote:
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