On 5/19/22 07:46, Maulis Adam via Dnsmasq-discuss wrote:
Hello,
I like to configure my dhcp server with as little redundacy as
possible. But it looks like the IP address needs to be written both of
/etc/hosts and /etc/dnsmasq.conf
The client machines are in the /etc/hosts for example:
192.168.64.200 cntemplate.hpc
The non-default dnsmasq config options are:
no-resolv
server=192.168.5.251
expand-hosts
domain=hpc
Case 1:
dhcp-range=192.168.64.0,static
dhcp-host=cntemplate
Does not work, syslog said:
May 19 15:53:47 gw00 dnsmasq-dhcp[4912]: DHCPDISCOVER(vlan164)
02:00:00:00:00:65 no address available
Maybe I am not fully understanding your use case. Here is how I have
mine configured:
hosts:
192.168.101.10 hostname
dnsmasq.conf
dhcp-host=0c:9d:92:10:a1:8c,hostname
This ties the DHCP request (MAC) to the hostname and then the hostname
to the ip in the hosts file.
Michael
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss