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

2021-06-21 Thread Neal P. Murphy
On Mon, 21 Jun 2021 11:57:48 -0400 wkitt...@gmail.com wrote: > On 6/21/21 8:42 AM, Jesus M Diaz wrote: > > so, if I have two virtual computers running over the same hardware, what > > should > > be used as identifier for dnsmasq? the physical mac-address (just one, as > > it is > > just one ph

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

2021-06-21 Thread Jesus M Diaz
Yes, I agree that those are the general assumptions, but sometimes there are exceptions or rare cases, and I simply asked, but apparently, what I was trying to get is not possible. And that's ok. I tried to set up client-id but still mac-address seems to have preference, and I cannot force all phy

Re: [Dnsmasq-discuss] Patch with option to filter A records

2021-06-21 Thread Geert Stappers via Dnsmasq-discuss
On Mon, Jun 14, 2021 at 11:54:02AM +0200, Trey Sis wrote: > On 6/14/2021 1:43, Trey Sis wrote: > > On 6/13/2021 22:01, Geert Stappers via Dnsmasq-discuss wrote: ... > > > > > > > > > /home/stappers/src/dnsmasq/.git/rebase-apply/patch:62: trailing > > > whitespace. > > >

Re: [Dnsmasq-discuss] [PATCH v9] Connection track mark based DNS query filtering.

2021-06-21 Thread Feed Back via Dnsmasq-discuss
On Wed, Jun 16, 2021 at 09:56:17PM +, Etan Kissling wrote: > This extends query filtering support beyond what is currently possible > with the `--ipset` configuration option, by adding support for: > 1) Specifying allowlists on a per-client basis, based on their >associated Linux connection

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

2021-06-21 Thread Geert Stappers via Dnsmasq-discuss
On Mon, Jun 21, 2021 at 05:09:49PM +0100, Jesus M Diaz wrote: > On Mon, 21 Jun 2021 at 14:54, Alex Morris wrote: > > On Mon, 21 Jun 2021, at 13:42, Jesus M Diaz wrote: > > > > > > so, if I have two virtual computers running over the same hardware, > > > > > > > ...then your hypervisor ought to prov

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

2021-06-21 Thread wkitty42
On 6/21/21 12:09 PM, Jesus M Diaz wrote: I never talked of VM on purpose, because they are not VM (hence, no hypervisor or any other controller plane). but you did, sir... here's the quote from your original message... On 6/21/21 3:05 AM, Jesus M Diaz wrote:> Not an answer, actually. > [...]

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

2021-06-21 Thread Dominick C. Pastore
There are much smarter people than me here, but if I might chime in: Two basic assumptions in networking are that no two separate devices will share the same MAC address, and a device's MAC address doesn't change after it's manufactured. Obviously there are practical exceptions (spoofing, privacy

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

2021-06-21 Thread wkitty42
On 6/21/21 8:42 AM, Jesus M Diaz wrote: so, if I have two virtual computers running over the same hardware, what should be used as identifier for dnsmasq? the physical mac-address (just one, as it is just one physical card)? the dhcp-client-id or hostname (configurable as per logical device lev

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

2021-06-21 Thread Jesus M Diaz
I never talked of VM on purpose, because they are not VM (hence, no hypervisor or any other controller plane). Indeed I talked of live linux distributions running on USB that I only use for very specific tasks, and of course, I run them over physical machines, but these physical machines are usuall

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

2021-06-21 Thread Andrew Miskell via Dnsmasq-discuss
Virtual machines usually generate their own MAC addresses for their virtual network cards in bridge mode. So the MAC would be the identifier. They don’t share a MAC address with the host itself. Sent from my iPhone > On Jun 21, 2021, at 09:02, Jesus M Diaz wrote: > >  > so, if I have two vi

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

2021-06-21 Thread Alex Morris
On Mon, 21 Jun 2021, at 13:42, Jesus M Diaz wrote: > > so, if I have two virtual computers running over the same hardware, > ...then your hypervisor ought to provide unique MAC addresses for each guest NIC. > > what should be used as identifier for dnsmasq? > The unique MAC address allocat

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

2021-06-21 Thread Jesus M Diaz
so, if I have two virtual computers running over the same hardware, what should be used as identifier for dnsmasq? the physical mac-address (just one, as it is just one physical card)? the dhcp-client-id or hostname (configurable as per logical device level)? That's exactly my point, that there mi

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

2021-06-21 Thread wkitty42
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*. What a computer is? the physical instance or the virtual one? the hardware or the software? This is the key to my scenario. And I totally agree with

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

2021-06-21 Thread Jesus M Diaz
Not an answer, actually. - *Avoid multiple matches*. As explained in the 'scenario description', that's not possible in this case, but moreover, there might be other scenarios where it wouldn't be possible either. - *My point of view: Each computer has a (dnsmasq) DNS entry, the entry gets in D

Re: [Dnsmasq-discuss] [PATCH] Expose more lease data through ubus

2021-06-21 Thread Eduardo AGUILAR
Hi Petr, Thanks for the review. The patch adds a method that can be called through ubus "dnsmasq.leases()" which iterates the leases linked list and shows the available information on them. Then also extend the information in existing ubus events when a DHCP packet is processed. I will add mor