[Dnsmasq-discuss] Getting interface name on which dhcp in running

Simon Kelley simon at thekelleys.org.uk
Fri Jan 17 11:02:34 GMT 2014

On 16/01/14 07:11, Prashant Abhang wrote:
> Hi all,
> I was wondering that is it possible get interface name from which the ip
> is given to client?
> I know there is option of dhcp-script which gives up MAC, IP and
> hostname of client.  But in addition to that can I get the interface
> from which the ip is given? I need it because I have two and more
> interfaces running dnsmasq with different IP range(VLAN Scenario).

Yes, the name of the interface is in the environment variable 
DNSMASQ_INTERFACE when the script is run. If the only reason you need 
this is allocate the correct address range to the correct interface, 
then you don't need it - dnsmasq will do that automatically.



> Thanks and Regards,
> Prashant Abhang
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss

More information about the Dnsmasq-discuss mailing list