[Dnsmasq-discuss] dnsmasq command to add dhcp-host record?

Jelle de Jong jelledejong at powercraft.nl
Sun Jan 3 20:03:57 GMT 2021


Hello everybody,

What is a good way to dynamically add a dhcp-host record, so a machine 
will get the ipaddr I assign to it?

example:
dhcp-host=52:54:00:e6:f4:8a,192.168.40.29,nginx01.example.lan,infinite

I want to automate the process and be able to integrate it with my 
ansible deployment systems.

Adding the line to the dnsmasq config file and reloading it will do the 
trick but is there a way to dynamically add it with some dnsmasq command?

Tips?

Kind regards,

Jelle de Jong



More information about the Dnsmasq-discuss mailing list