Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-04 Thread Andrew Miskell

> On Aug 4, 2019, at 5:37 AM, Geert Stappers  wrote:
> 
> I would go for entries in /etc/hosts because that
> doesn't require reloading of dnsmasq.
> 

Depends on use case I suppose. I run DNSMasq as a docker container (I ran 
pretty much all services as docker containers), so it’s easier just to keep 
everything in the configuration files for DNSMasq and have a single thing to 
backup.

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


Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-04 Thread john doe
On 8/4/2019 12:33 PM, john doe wrote:
> On 8/3/2019 10:50 PM, Chris Green wrote:
>> I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
>> DHCP services on my LAN.
>>
>> I have some dhcp-host lines in my configuration file to give names to
>> systems that don't give their names, e.g.:-
>>
>> dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
>> dhcp-host=28:EF:01:2D:EB:07,chrisKindle
>> dhcp-host=08:EB:74:9D:47:53,humaxFreeview
>> dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
>> dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
>> dhcp-host=1C:1B:0D:60:9A:E1,ben
>> dhcp-host=AC:AE:19:2C:3F:5A,roku
>> dhcp-host=10:FE:ED:63:29:74,TP-Link_TL-WA7210
>>
>> Most of these work but a couple don't work ..and I think I have
>
> Which one are not working?
> The URL (1) might be of interest to you.
>

Forgot (1), sorry about that.

1)  https://en.wikipedia.org/wiki/Hostname#Restrictions_on_valid_hostnames

--
John Doe

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


Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-04 Thread Geert Stappers
On Sun, Aug 04, 2019 at 10:27:27AM +0100, Chris Green wrote:
> On Sat, Aug 03, 2019 at 11:36:25PM +0200, Geert Stappers wrote:
> > On Sat, Aug 03, 2019 at 09:50:44PM +0100, Chris Green wrote:
> > > I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
> > > DHCP services on my LAN.
> > > 
> > > I have some dhcp-host lines in my configuration file to give names to
> > > systems that don't give their names, e.g.:-
> > > 
> > > dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
> > > dhcp-host=28:EF:01:2D:EB:07,chrisKindle
> > > dhcp-host=08:EB:74:9D:47:53,humaxFreeview
> > > dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
> > > dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
> > > dhcp-host=1C:1B:0D:60:9A:E1,ben
> > > dhcp-host=AC:AE:19:2C:3F:5A,roku
> > > dhcp-host=10:FE:ED:63:29:74,TL-WA7210
> > > 
> > > Most of these work but a couple don't work ..and I think I have
> > > just realised why they don't work.  Systems which don't request their
> > > IP address from dnsmasq don't provide dnsmasq with their MAC address
> > > and thus dnsmasq doesn't give them a name.
> > > 
> > > Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> > > system, is this the only way of handling this?
> > 
> > To handle what?
> > 
> > Please elaborate the challenge you are facing.
> > 
> The 'challenge' of giving names to IPs which don't want to tell me
> their names! :-)
> 
> I want TL-WA7210 and 'ben' to be names I can use (and see).
> 

Yes, we all do want that magic happens.

dnsmasq is not magic, it is high tech software that does
several tasks, among them is "DNServer" and "DHCP server".

Be aware that DNS and DHCP are two separate protocols.

Both services do need configuration
and that does need some knowlegde.


Back to
> > > Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> > > system, is this the only way of handling this?

As Andrew Miskell wrote
in http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2019q3/013177.html
| address=/hosta/192.168.1.1
| 
| Will map hosta to 192.168.1.1 for DNS lookups.


I would go for entries in /etc/hosts because that
doesn't require reloading of dnsmasq.


Groeten
Geert Stappers
-- 
Any sufficiently advanced technology
is indistinguishable from magic.  -- Arthur C. Clarke

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


Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-04 Thread john doe
On 8/3/2019 10:50 PM, Chris Green wrote:
> I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
> DHCP services on my LAN.
>
> I have some dhcp-host lines in my configuration file to give names to
> systems that don't give their names, e.g.:-
>
> dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
> dhcp-host=28:EF:01:2D:EB:07,chrisKindle
> dhcp-host=08:EB:74:9D:47:53,humaxFreeview
> dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
> dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
> dhcp-host=1C:1B:0D:60:9A:E1,ben
> dhcp-host=AC:AE:19:2C:3F:5A,roku
> dhcp-host=10:FE:ED:63:29:74,TP-Link_TL-WA7210
>
> Most of these work but a couple don't work ..and I think I have

Which one are not working?
The URL (1) might be of interest to you.

> just realised why they don't work.  Systems which don't request their
> IP address from dnsmasq don't provide dnsmasq with their MAC address
> and thus dnsmasq doesn't give them a name.
>

By that you mean that you have fix addresses on some hosts and there are
not static leases in dnsmasq?static in the dnsmasq?

> Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> system, is this the only way of handling this?
>

If you can move away from fix addresses, static leases might be an option.
If you can't move away from fix addresses, as you hinted out you will
need to look at the host file/host file options in dnsmasq or the
'address' option in dnsmasq.

--
John Doe

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


Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-04 Thread Chris Green
On Sat, Aug 03, 2019 at 11:36:25PM +0200, Geert Stappers wrote:
> On Sat, Aug 03, 2019 at 09:50:44PM +0100, Chris Green wrote:
> > I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
> > DHCP services on my LAN.
> > 
> > I have some dhcp-host lines in my configuration file to give names to
> > systems that don't give their names, e.g.:-
> > 
> > dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
> > dhcp-host=28:EF:01:2D:EB:07,chrisKindle
> > dhcp-host=08:EB:74:9D:47:53,humaxFreeview
> > dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
> > dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
> > dhcp-host=1C:1B:0D:60:9A:E1,ben
> > dhcp-host=AC:AE:19:2C:3F:5A,roku
> > dhcp-host=10:FE:ED:63:29:74,TL-WA7210
> > 
> > Most of these work but a couple don't work ..and I think I have
> > just realised why they don't work.  Systems which don't request their
> > IP address from dnsmasq don't provide dnsmasq with their MAC address
> > and thus dnsmasq doesn't give them a name.
> > 
> > Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> > system, is this the only way of handling this?
> 
> To handle what?
> 
> Please elaborate the challenge you are facing.
> 
The 'challenge' of giving names to IPs which don't want to tell me
their names! :-)

I want TL-WA7210 and 'ben' to be names I can use (and see).

-- 
Chris Green

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


Re: [Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-03 Thread Andrew Miskell
Or use address directives to map a hostname to an IP address.

i.e.

address=/hosta/192.168.1.1

Will map hosta to 192.168.1.1 for DNS lookups.

> On Aug 3, 2019, at 3:50 PM, Chris Green  wrote:
> 
> I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
> DHCP services on my LAN.
> 
> I have some dhcp-host lines in my configuration file to give names to
> systems that don't give their names, e.g.:-
> 
>dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
>dhcp-host=28:EF:01:2D:EB:07,chrisKindle
>dhcp-host=08:EB:74:9D:47:53,humaxFreeview
>dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
>dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
>dhcp-host=1C:1B:0D:60:9A:E1,ben
>dhcp-host=AC:AE:19:2C:3F:5A,roku
>dhcp-host=10:FE:ED:63:29:74,TP-Link_TL-WA7210
> 
> Most of these work but a couple don't work ..and I think I have
> just realised why they don't work.  Systems which don't request their
> IP address from dnsmasq don't provide dnsmasq with their MAC address
> and thus dnsmasq doesn't give them a name.
> 
> Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> system, is this the only way of handling this?
> 
> 
> -- 
> Chris Green
> 
> ___
> 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] Some MAC addresses recognised, others not, in dhcp lines

2019-08-03 Thread Geert Stappers
On Sat, Aug 03, 2019 at 09:50:44PM +0100, Chris Green wrote:
> I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
> DHCP services on my LAN.
> 
> I have some dhcp-host lines in my configuration file to give names to
> systems that don't give their names, e.g.:-
> 
> dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
> dhcp-host=28:EF:01:2D:EB:07,chrisKindle
> dhcp-host=08:EB:74:9D:47:53,humaxFreeview
> dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
> dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
> dhcp-host=1C:1B:0D:60:9A:E1,ben
> dhcp-host=AC:AE:19:2C:3F:5A,roku
> dhcp-host=10:FE:ED:63:29:74,TP-Link_TL-WA7210
> 
> Most of these work but a couple don't work ..and I think I have
> just realised why they don't work.  Systems which don't request their
> IP address from dnsmasq don't provide dnsmasq with their MAC address
> and thus dnsmasq doesn't give them a name.
> 
> Presumably these static IPs must be put into /etc/hosts on the dnsmasq
> system, is this the only way of handling this?

To handle what?

Please elaborate the challenge you are facing.



Groeten
Geert Stappers
-- 
Leven en laten leven

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


[Dnsmasq-discuss] Some MAC addresses recognised, others not, in dhcp lines

2019-08-03 Thread Chris Green
I'm running dnsmasq version 2.76 on a raspberry pi to provide DNS and
DHCP services on my LAN.

I have some dhcp-host lines in my configuration file to give names to
systems that don't give their names, e.g.:-

dhcp-host=00:09:B0:C9:CE:81,onkyoTx-nr616
dhcp-host=28:EF:01:2D:EB:07,chrisKindle
dhcp-host=08:EB:74:9D:47:53,humaxFreeview
dhcp-host=2C:08:8C:CC:9A:9E,humaxYouview
dhcp-host=00:1F:E2:4E:8F:CA,maxineStudy
dhcp-host=1C:1B:0D:60:9A:E1,ben
dhcp-host=AC:AE:19:2C:3F:5A,roku
dhcp-host=10:FE:ED:63:29:74,TP-Link_TL-WA7210

Most of these work but a couple don't work ..and I think I have
just realised why they don't work.  Systems which don't request their
IP address from dnsmasq don't provide dnsmasq with their MAC address
and thus dnsmasq doesn't give them a name.

Presumably these static IPs must be put into /etc/hosts on the dnsmasq
system, is this the only way of handling this?


-- 
Chris Green

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