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

Carlos Gustavo Sarmiento carlos5678 at gmail.com
Wed Oct 30 07:33:27 GMT 2019


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,

Carlos G.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20191030/f0b11ca4/attachment.html>


More information about the Dnsmasq-discuss mailing list