<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Mar 2, 2022 at 8:45 PM <hamish@moffatt.email> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div>
    <div>On 3/3/22 15:07, Frank Liu wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">
        <div dir="ltr"><br>
        </div>
        <br>
        <div class="gmail_quote">
          <div dir="ltr" class="gmail_attr">On Wed, Mar 2, 2022 at 5:46
            PM <a href="mailto:hamish@moffatt.email" target="_blank"><hamish@moffatt.email></a> wrote:<br>
          </div>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
            <div>I have:
              <p>dhcp-host=<mac>,192.168.42.18,[::0:18],somehostname</p>
              <p>cname=somealias.mydomain,somehostname</p>
              <p><br>
              </p>
              <p>This is working fine. I have version 2.80 (on OpenWRT
                19.07).</p>
              <p>I see one difference to yours is that the target of the
                cname is only a hostname and not the full domain. Does
                it work for you if you make that change?</p>
            </div>
          </blockquote>
          <div><br>
          </div>
          <div>dhcp-host doesn't work for me. Geoff Back earlier in the
            thread also mentioned dhcp-host not working for him either.
            <br>
          </div>
          <div><br>
          </div>
          <div>I don't think target full or short name matters. I always
            use full domain names in target, as mentioned earlier in
            this thread, but I just tried short hostname only, but it
            didn't make a difference.</div>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Ah well I also have</p>
    <p>addn-hosts=/tmp/hosts</p>
    <p>with /tmp/hosts containing a hosts file with:<br>
    </p>
    <p>192.168.42.18 somehostname.mydomain</p>
    <p><br>
    </p>
    <p>This was all set up by OpenWRT. Maybe that's why it works for me
      but not you<font size="4">.</font></p></div></blockquote><div> </div><div>That is correct. Using target from static hosts works, but not from dhcp, even if you use dhcp-host reservation.</div><div>It seems like a dnsmasq bug to me.</div><div><br></div><div>Frank</div><div><br></div><div><br></div></div></div>