<div dir="ltr">Thanks, Michael.  That will work to get them using that server, but it's totally bypassing dnsmasq which means my local entries from /etc/hosts don't resolve.  I'd like both things to work to be difficult :)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Dec 18, 2022 at 10:36 AM Michael Smith <<a href="mailto:michael@kmaclub.com" target="_blank">michael@kmaclub.com</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>
    <div>On 12/18/22 06:59, Jonathan Stafford
      wrote:<br>
    </div>
    <blockquote type="cite">
      
      <div dir="ltr">--server provides a way to change upstream
        resolvers based on the domain being queried.  Is there a way to
        make the same sort of change based on the client doing the
        querying?  For example, I'd like the IP address range I use for
        my kids' devices to use 1.1.1.3.
        <div><br>
        </div>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>You can achieve this using tags:</p>
    <p><br>
    </p>
    <p><br>
    </p>
    <p><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"># Define DNS
          servers
        </span><br>
        dhcp-option=option:dns-server,1.1.1.1<br>
      </span><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">dhcp-option=tag:kidsdevices,option:dns-server,1.1.1.3</span><br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">dhcp-host=0c:51:01:95:d3:36,set:kidsdevices
            # Ipad
        </span><br>
        dhcp-host=58:41:4E:CD:D2:0A,set:kidsdevices   # Iphone<br>
      </span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
    <p><span style="font-family:monospace">Michael</span></p>
    <p><span style="font-family:monospace"><br>
      </span></p>
  </div>

_______________________________________________<br>
Dnsmasq-discuss mailing list<br>
<a href="mailto:Dnsmasq-discuss@lists.thekelleys.org.uk" target="_blank">Dnsmasq-discuss@lists.thekelleys.org.uk</a><br>
<a href="https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss" rel="noreferrer" target="_blank">https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</a><br>
</blockquote></div>