[Dnsmasq-discuss] Different local domain per dhcp zone in dnsmasq

Geert Stappers geert.stappers at hendrikx-itc.nl
Wed Oct 30 10:19:28 GMT 2019


On 30-10-2019 08:33, Carlos Gustavo Sarmiento wrote:

> Hey Everyone,
>
> I'm testing an installation of dnsmasq on Ubuntu with two separate
> DHCP ranges that get assigned based on the mac address of the device.
>
> ```
> ...
> dhcp-range=10.1.0.100,10.1.0.200,12h
> dhcp-range=net:iot,10.1.60.1,10.1.60.200,12h
>
> dhcp-mac=iot,00:08:5d:*:*:*
> ...
> ```
>
> I use dnsmasq as a DNS server and currently have it configured with
>
> ```
> ...
> local=/somedomain.local/
> ...
> ```
>
> Which means that for devices on both  DHCP ranges they respond to
> `{hostname}.somedomain.local`.
>
> I'm trying to figure out if there is a way to configure dnsmasq so
> that devices on the general range respond to
> `{hostname}.somedomain.local` but devices on the iot range respond to
> `{hostname}.iot.somedomain.local`
>
> I'll be very grateful for any help I can get,
>

I did see the "extra" on DHCP level, but not on DNS level.


Cheers

Geert Stappers





More information about the Dnsmasq-discuss mailing list