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

2019-10-30 Thread Simon Kelley
On 30/10/2019 07: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,
> 

Look at the --domain configuration option in the manpage - that allows
you to do exactly what you want.


Cheers,

Simon.


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


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

2019-10-30 Thread Geert Stappers
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



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


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

2019-10-30 Thread Carlos Gustavo Sarmiento
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.
___
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss