<html><head>
<style id="css_styles" type="text/css"><!--blockquote.cite { margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc }
blockquote.cite2 {margin-left: 5px; margin-right: 0px; padding-left: 10px; padding-right:0px; border-left: 1px solid #cccccc; margin-top: 3px; padding-top: 0px; }
a img { border: 0px; }
li[style='text-align: center;'], li[style='text-align: right;'] { list-style-position: inside;}
body { font-family: Tahoma; font-size: 12pt; }--></style></head><body class="plain"><div>On 08.05.2023 15:00:22, "public1020" wrote:</div>
<div><br /></div>
<div id="x5158b441e34a40d"><blockquote type="cite" class="cite2">
<div class="plain_line">Thanks, dnsmasq does not support this feature. </div></blockquote><span><div id="x5158b441e34a40d"><span><br /></span></div><div id="x5158b441e34a40d"><span>Why would you think so when you have been pointed to the correct answer from the docs?</span></div><div id="x5158b441e34a40d"><br /></div><div id="x5158b441e34a40d">Matus UHLAR even quoted the decisive sentence for you:</div><div id="x5158b441e34a40d"><span><br /></span></div><div id="x5158b441e34a40d"><span><br /></span></div></span><blockquote type="cite" class="cite2"><blockquote type="cite" class="cite2"><div class="plain_line"><span> it does and the answer is listed in dnsmasq manual page, just where you</span></div>
<div class="plain_line"> would search for it:</div>
<div class="plain_line"> </div>
<div class="plain_line"> -A, --address=/<domain>[/<domain>...]/[<ipaddr>]</div>
<div class="plain_line"> </div>
<div class="plain_line"> </div>
<div class="plain_line"> </div>
<div class="plain_line"> ... Note that /etc/hosts and DHCP leases override this for individual name</div></blockquote></blockquote><div><div class="plain"><div id="x5158b441e34a40d"><div id="x5158b441e34a40d"><br /></div><div id="x5158b441e34a40d"><br /></div><div id="x5158b441e34a40d">'address' would s<span>pecify an IP address to return for any host in the given domains, i.e. including subdomains, so its not fit to satisfy </span><span>your original request about an individual host name, e.g. for shadowing only </span><span>example.com, but none of its subdomains.</span></div><div id="x5158b441e34a40d"><span><br /></span></div><div id="x5158b441e34a40d"><span>As the docs quoted by </span><span style="font-size: medium;">Matus UHLAR</span><b style="font-size: medium;"> </b><span>state, you may use entries in /etc/hosts to that purpose:</span></div><div id="x5158b441e34a40d"><span>Just add some lines with the desired IP and </span><span>hostname associations </span><span>to that file.</span></div><div id="x5158b441e34a40d"><span><br /></span></div><div id="x5158b441e34a40d"><span>Of course, that may only work if you wouldn't prevent dnsmasq from reading /etc/hosts.</span></div><div id="x5158b441e34a40d"><span>So if your dnsmasq configuration would use the 'no-hosts' option (or if you'd just like to keep things separated), you could configure '</span><span>addn-hosts' to point dnsmasq to a separate file with your custom host definitions.</span></div><div id="x5158b441e34a40d"><span><br /></span></div><div id="x5158b441e34a40d"><span>Kind regards,</span></div><div id="x5158b441e34a40d"><span> Buck</span></div><div id="x5158b441e34a40d"><br /></div><div id="x5158b441e34a40d"><br /></div></div></div></div></div>
</body></html>