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

2021-06-22 Thread Matus UHLAR - fantomas via Dnsmasq-discuss
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

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

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

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

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

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

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

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

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

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

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

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

2021-06-20 Thread Geert Stappers via Dnsmasq-discuss
On Sun, Jun 20, 2021 at 08:58:59PM +0100, Jesus M Diaz wrote: > 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