Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Jesus M Diaz
On Fri, 3 Sept 2021 at 15:16, Chris Green wrote: > On Fri, Sep 03, 2021 at 01:58:54PM +0100, Jesus M Diaz wrote: > > I wasn't considering erasing/deleting the dnsmasq.leases file, I was > > rather thinking of copying it to a non-running backup dnsmasq so > >

Re: [Dnsmasq-discuss] Questions about DHCP persistence and lease times

2021-09-03 Thread Jesus M Diaz
On Fri, 3 Sept 2021 at 13:41, Chris Green wrote: > On Fri, Sep 03, 2021 at 12:08:20PM +0100, Ed W wrote: > > On 03/09/2021 11:31, Chris Green wrote: > > > Two questions really:- > > > > > > Is the file /var/lib/misc/dnsmasq.leases the only place where > > > dnsmasq keeps DHCP/IP/Name info

Re: [Dnsmasq-discuss] [PATCH] [man/dnsmasq.8] dhcp-range bracket indicating option moved

2021-08-16 Thread Jesus M Diaz
Probably a typo: +.TH DNSMASQ 8 2020-08-16 or +.TH DNSMASQ 8 202*1*-08-16 ?? On Mon, 16 Aug 2021 at 21:58, Geert Stappers via Dnsmasq-discuss < dnsmasq-discuss@lists.thekelleys.org.uk> wrote: > There should already be an end-address or mode when adding a netmask. > > Also the date bumped. >

Re: [Dnsmasq-discuss] Regarding: (Dnsmasq-discuss) localise-queries on ipv6 server does not work with ipv4-only hosts

2021-07-18 Thread Jesus M Diaz
On Sat, 17 Jul 2021 at 13:54, john doe wrote: > On 7/17/2021 1:52 PM, Kevin Darbyshire-Bryant wrote: > > > >> On 17 Jul 2021, at 01:32, f...@gmx.de wrote: > >> > >> > >> > >> Am 16.07.2021 um 13:42 schrieb Geert Stappers: > >>> ... > >> All your messages are not helpfull and off topic. > >> > >>

Re: [Dnsmasq-discuss] dhcp-host precedence request due multiple matches

2021-06-21 Thread Jesus M Diaz
probably to avoid > using > MAC addresses as machine identifiers at all. Can you set DHCP client IDs? > Or > use hostnames for the host machines' regular OSes as well? > > Alternatively, can you set up the live USBs to use custom MAC addresses, > so the assumption does

Re: [Dnsmasq-discuss] dhcp-host precedence request due multiple matches

2021-06-21 Thread Jesus M Diaz
set a precedence among the potentially matching dhcp-hosts entries? I don't really understand why the philosophical discussion on what a computer is or is not. Thanks anyway everybody for the comments. On Mon, 21 Jun 2021 at 14:54, Alex Morris wrote: > On Mon, 21 Jun 2021, at 13:42,

Re: [Dnsmasq-discuss] dhcp-host precedence request due multiple matches

2021-06-21 Thread Jesus M Diaz
there might be where more than one dhcp-host entry match the DHCP request. Thanks On Mon, 21 Jun 2021 at 13:23, wrote: > On 6/21/21 3:05 AM, Jesus M Diaz wrote: > > - *My point of view: Each computer has a (dnsmasq) DNS entry, the > entry gets > > in DNS by DHCP of dnsmasq*.

Re: [Dnsmasq-discuss] dhcp-host precedence request due multiple matches

2021-06-21 Thread Jesus M Diaz
So, regardless of your opinion about the scenario being logical, making sense of being valid/invalid, the question stands: is there any way to define precedences for potentially multiple matches? Thanks. Jesus M Diaz On Sun, 20 Jun 2021 at 22:50, Geert Stappers via Dnsmasq-discuss < dnsmasq-discu

[Dnsmasq-discuss] dhcp-host precedence

2021-06-20 Thread Jesus M Diaz
Hello, Let me explain the scenario: - I have a number of computers acquiring IP-address by DHCP and I have dnsmasq configured with static leases for specific mac-addresses. - I also have a couple of virtual computers for very specific purposes that I run from a live Linux distro from a USB drive.

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-19 Thread Jesus M Diaz
18 May 2021 at 21:58, Geert Stappers via Dnsmasq-discuss < dnsmasq-discuss@lists.thekelleys.org.uk> wrote: > On Mon, May 17, 2021 at 10:21:57PM +0100, Jesus M Diaz wrote: > > Simon Kelly wrote: > > > To answer the question, the host doesn't get the same address because &

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-17 Thread Jesus M Diaz
> > To answer the question, the host doesn't get the same address because > "multiple MAC addresses on the same line" is NOT the same as a MAC > address with wildcards in it. If you had > > dhcp-host=96:8d:d4:d0:4d:e3,a4:50:46:d0:4d:e3,192.168.0.217 > > then it would work, but > > dhcp-host=*:*:*:d

Re: [Dnsmasq-discuss] "multiple MAC addresses in a single dhcp-host" vs "multiple dhcp-host lines with the same IP address"

2021-05-17 Thread Jesus M Diaz
;s On Mon, 17 May 2021 at 17:57, wrote: > On 5/17/21 5:30 AM, Jesus M Diaz wrote: > > dhcp-host=*:*:*:d0:4d:e3,set:mobile,192.168.0.217,xiaomi-a2 > > i have to wonder if using wildcards counts as "multiple mac addresses"... > > what happens if you explicitly se

[Dnsmasq-discuss] "multiple MAC addresses in a single dhcp-host" vs "multiple dhcp-host lines with the same IP address"

2021-05-17 Thread Jesus M Diaz
Hello, I am having an issue with this (see *[Dnsmasq-discuss] dnsmasq not overriding leases for static assignments* thread), but in summary, the problem is that this is not working for me: I have one dhcp-host configuration line with multiple mac-addr for one ip-addr, but dnsmasq don't assign the

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-17 Thread Jesus M Diaz
om the pool) *With multiple MAC addresses on a single line, when the second MAC address turns up, the IP address will be unceremoniously ripped away from the first MAC address, and given to the second one.* But that is not being my case. Thanks Jesus M Diaz On Mon, 17 May 2021 at 07:28, Gee

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-16 Thread Jesus M Diaz
> at identification happen??? > > > > > > > > will answer #5 and #6 together: in the config file line for this device > > > > dhcp-host=set:mobile,*:*:*:63:ea:55,samsungA30s > > > > I am setting a name (samsungA30s), a tag (mobile) and a mac-addr pattern > > that both the initial lease and the new

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-16 Thread Jesus M Diaz
Inline > > > That's an easy one, > > Okay. Here other easy one: Reply below previous text. > > Nice to see easy comments. > > I have the 'old' lease, the dnsmasq config and logs, > > and tcpdump sniffing (see below). But the short story is: > > > >1. device asked some time ago for an ip-ad

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-16 Thread Jesus M Diaz
That's an easy one, I have the 'old' lease, the dnsmasq config and logs, and tcpdump sniffing (see below). But the short story is: 1. device asked some time ago for an ip-addr, and as it is configured to get a static one, it got it (logged in the 'old' lease) 2. device disconnect from the

Re: [Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-16 Thread Jesus M Diaz
topic was actually another: if dnsmasq is supposed to be able to abandon a lease when a known and legit mac-address is requesting that same ip-address, and the static lease is configured, why is it not doing it? Thanks! Jesus M On Sat, 15 May 2021 at 12:38, Jesus M Diaz wrote: > Hello, &g

[Dnsmasq-discuss] Define default dhcp-range when multiple one exist

2021-05-15 Thread Jesus M Diaz
Hello, I am trying to set different ranges in my dnsmasq configuration, to be used based on tags. I have a series of dhcp-host entries, matching by mac-address, and setting host-name and tag in most cases, and static lease in others: dhcp-host=set:iot,a1:b1:c1:d1:e1:f1,hostname1 > ... > dhcp-host

[Dnsmasq-discuss] dnsmasq not overriding leases for static assigments

2021-05-15 Thread Jesus M Diaz
Hello, I have a 'TP-Link One-Mesh' system at home formed by the main router and three satellite access-points. It works really well making a good coverage over the house with smooth change from one AP to the other, but it has a caveat: for DHCP requests, the AP change the client mac-address with a