Not sure how to phrase this.

I am running dnsmasq.   I generally assign IP address via:
dhcp-host=00:04:13:34:22:38,snom_300_phone
so that when a device with mac address: 00:04:13:34:22:38 requests an ip address the name from that dhcp-host record is returned.

Of devices where I don't have a pre-assigned ip address, I see in the logs:

Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 client provides name: ecoflow Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 DHCPREQUEST(HomeLan) 10.12.15.129 f4:f3:23:00:f4:28
Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 tags: HomeLan
Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 DHCPACK(HomeLan) 10.12.15.129 f4:f3:23:00:f4:28 ecoflow Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 requested options: 1:netmask, 3:router, 28:broadcast, 6:dns-server Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 next server: 10.12.14.30 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  1 option: 53 message-type  5 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option: 54 server-identifier  10.12.14.30 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option: 51 lease-time  12h Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option: 58 T1  5h33m12s Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option: 59 T2  10h3m12s Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option:  1 netmask  255.255.254.0 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option: 28 broadcast  10.12.15.255 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option:  6 dns-server  10.12.14.30 Dec 17 01:05:45 devbox dnsmasq-dhcp[1438630]: 3224099965 sent size:  4 option:  3 router  10.12.14.30

when a device boots up and requests an ip address.

In this particular case, I see that 10.12.15.129 is assigned AND that the device sends: "*client provides name: ecoflow*". Is there any dnsmasq setting that tells the server it's ok to give the assigned address ( 10.12.15.129 ) the client provided name - ecoflow - in this case.

The device gets the 10.12.15.129 address assigned but the hostname ecoflow is not allocated anywhere. ping ecoflow or host ecoflow or ping ecoflow.mydomain.net, etc don't cause the 10.12.15.129 address to be resoved so all I get is:
Host ecoflow not found: 3(NXDOMAIN)

How can I get my dnsmasq server to use the 'client provides name:' data sent with the original DHCP request?
_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to