<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Thanks Dan, that looks promising.
      Running "grep -Pi ' \w[26AE][\w:]+ [\d\.]+ '
      /var/lib/dnsmasq/dnsmasq.leases" does yield all the leases in
      scope.</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">I wasn't able to get a working config
      just a "bad hex constant" error on that line. It appears to
      dislike the "*2:*:*:*:*:*" filter.<br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">On 7/19/25 1:15 AM, Dan Schaper wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:em69e530f8-01de-4cee-9dc0-d179a240abe8@8124892e.com">You
      can use --dhcp-host to tag or otherwise dispense with clients
      based on mac address. You can also specify mac addresses with a *
      wildcard byte, so you might be able to leverage the fact that
      randomized mac addresses follow a pattern.
      <br>
      <br>
      Per <a class="moz-txt-link-freetext" href="https://www.rfc-editor.org/rfc/rfc7042.html#section-2.1">https://www.rfc-editor.org/rfc/rfc7042.html#section-2.1</a> the
      local bit is set, meaning that the mac addresses will be in the
      form of x2:xx:xx:xx:xx:xx, x6:xx:xx:xx:xx:xx, xA:xx:xx:xx:xx:xx,
      xE:xx:xx:xx:xx:xx. What I'm not sure of, and would need testing,
      is if you can use wildcards for part, like *2:*:*:*:*:*
      <br>
      <br>
      Apple's MAC randomization is _supposed_ to be per WiFi SSID, so
      each device _should_ only have one randomized mac address per
      SSID. I don't really think it works that way in the real world.
      <br>
      <br>
      Dan
      <br>
      <br>
      ------ Original Message ------
      <br>
      From "Jay Guerette" <a class="moz-txt-link-rfc2396E" href="mailto:jayguerette@gmail.com"><jayguerette@gmail.com></a>
      <br>
      To <a class="moz-txt-link-abbreviated" href="mailto:donmuller22@outlook.com">donmuller22@outlook.com</a>;
      <a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a>
      <br>
      Date 7/18/2025 8:16:21 PM
      <br>
      Subject Re: [Dnsmasq-discuss] Lease duration for hosts without
      names
      <br>
      <br>
      <blockquote type="cite">
        <br>
        I should have been more explicit in my ask. I know how to fix it
        but I want to prevent it in the future. When I'm not around I
        want my network to work without intervention.
        <br>
        <br>
        Most people don't know what a MAC is, don't know where the
        setting is, and may not react well to "you have to disable
        privacy if you want to use my wifi". The smaller pool size &
        longer lease length could be considered short-sighted or
        self-inflicted. I didn't anticipate guests requiring 4+ IPs on
        my network each and constantly acquiring new ones without
        releasing the old ones.
        <br>
        <br>
        I think that hosts that don't provide a name are either
        mis-configured, poorly designed, or just privacy focused. We
        already have 'dhcp-generate-names' that identifies these hosts,
        I'm wondering if we could extend the concept to allow you to add
        a tag to such hosts so that specific policies could be applied.
        <br>
        <br>
        <br>
        On 7/18/25 6:40 PM, Donald Muller wrote:
        <br>
        <blockquote type="cite">Have them turn off MAC randomization or
          modify your dnsmasq config to increase the pool or set a short
          lease time while they are guests.
          <br>
          ________________________________
          <br>
          From: Dnsmasq-discuss
          <br>
          <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk"><dnsmasq-discuss-bounces@lists.thekelleys.org.uk></a>
          <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk"><mailto:dnsmasq-discuss-bounces@lists.thekelleys.org.uk></a>
          on behalf of Jay Guerette <a class="moz-txt-link-rfc2396E" href="mailto:jayguerette@gmail.com"><jayguerette@gmail.com></a>
          <a class="moz-txt-link-rfc2396E" href="mailto:jayguerette@gmail.com"><mailto:jayguerette@gmail.com></a>
          <br>
          Sent: Friday, July 18, 2025 6:01 PM
          <br>
          To:
          <br>
<a class="moz-txt-link-abbreviated" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a><a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"><dnsmasq-discuss@lists.thekelleys.org.uk></a>
          <a class="moz-txt-link-rfc2396E" href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk"><mailto:dnsmasq-discuss@lists.thekelleys.org.uk></a>
          <br>
          Subject: [Dnsmasq-discuss] Lease duration for hosts without
          names
          <br>
          <br>
          <br>
          I have some house guests who brought devices that randomize
          their macs and don't provide host names. Due to their usage
          patterns they quickly exhausted my small DHCP pool.
          <br>
          <br>
          Is there a way that I can tag hosts that don't provide a name
          so that I can provide a custom/shorter lease time?
          <br>
        </blockquote>
        <br>
        <br>
      </blockquote>
    </blockquote>
    <p><br>
    </p>
  </body>
</html>