On 5/19/22 07:46, Maulis Adam via Dnsmasq-discuss wrote:
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
On 19.05.22 13:46, Michael Smith wrote:
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.
just FYI, I use /etc/ethers for this, as this is unix database for mapping
ethernet numbers to hostnames.
dnsmasq uses this database on my home router
--
Matus UHLAR - fantomas, uh...@fantomas.sk ; http://www.fantomas.sk/
Warning: I wish NOT to receive e-mail advertising to this address.
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.
My mind is like a steel trap - rusty and illegal in 37 states.
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss