Re: [Dnsmasq-discuss] FAQ? dhcp-script does not receive any action for Windows 10 dhcp client

2018-08-03 Thread Simon Kelley
Nicolas's suggestion is a good one. The dhcp-script gets called when the
DHCP lease database changes. If the DHCP interaction doesn't update the
database, it won't get called. A DHCPINFORM query is the most obvious
way in which that could happen.


Cheers,

Simon.



On 02/08/18 09:30, Nicolas Cavallari wrote:
> On 02/08/2018 08:40, Learn wrote:
>> Hi
>>
>> Not very sure if this is a bug, but I saw dnsmasq.log:
>>
>> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 available DHCP range:
>> 172.24.1.10 -- 172.24.1.249
>> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 vendor class: MSFT 5.0
>> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 client provides name: xxx
>>
>> But my dhcp-script file does not capture anything.
>>
>> Here is my simple dhcp-script:
>>
>>> #!/bin/sh
>>>   op="${1:-op}"
>>>   mac="${2:-mac}"
>>>   ip="${3:-ip}"
>>>   hostname="${4}"
>>>   tstamp="`date '+%Y-%m-%d %H:%M:%S'`"
>>>   payload="${tstamp} ${op} ${ip} (${mac} - ${hostname})"
>>>   ddd="`date +%Y_ww%W`"
>>>   echo $payload >> /var/log/dhcp-$ddd.log
>>
>> I am sure that I could capture actions from an iPhone iOS. And my
>> Windows 10 client does lease a dhcp address.
> 
> maybe it is a DHCPINFORM ? Windows sure does funky stuff with DHCP.
> 
> ___
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
> 


___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss


Re: [Dnsmasq-discuss] FAQ? dhcp-script does not receive any action for Windows 10 dhcp client

2018-08-02 Thread Nicolas Cavallari
On 02/08/2018 08:40, Learn wrote:
> Hi
> 
> Not very sure if this is a bug, but I saw dnsmasq.log:
> 
> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 available DHCP range:
> 172.24.1.10 -- 172.24.1.249
> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 vendor class: MSFT 5.0
> Aug  2 14:13:28 dnsmasq-dhcp[5748]: 4278662147 client provides name: xxx
> 
> But my dhcp-script file does not capture anything.
> 
> Here is my simple dhcp-script:
> 
>> #!/bin/sh
>>  op="${1:-op}"
>>  mac="${2:-mac}"
>>  ip="${3:-ip}"
>>  hostname="${4}"
>>  tstamp="`date '+%Y-%m-%d %H:%M:%S'`"
>>  payload="${tstamp} ${op} ${ip} (${mac} - ${hostname})"
>>  ddd="`date +%Y_ww%W`"
>>  echo $payload >> /var/log/dhcp-$ddd.log
> 
> I am sure that I could capture actions from an iPhone iOS. And my
> Windows 10 client does lease a dhcp address.

maybe it is a DHCPINFORM ? Windows sure does funky stuff with DHCP.

___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss