<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto">What I do, which seems to work (for me):<div><br></div><div>host-record=example.com/1.2.3.4<br><br><div dir="ltr">Regards,<div>-Sam</div></div><div dir="ltr"><br><blockquote type="cite">On May 7, 2023, at 23:01, public1020 via Dnsmasq-discuss <dnsmasq-discuss@lists.thekelleys.org.uk> wrote:<br><br></blockquote></div><blockquote type="cite"><div dir="ltr"><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important">I'm trying to use dnsmasq to hijack<span> </span></span><code style="margin:0px;white-space:pre-wrap;color:rgb(35, 38, 41);text-align:left">example.com</code><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important">, but not<span> </span></span><code style="margin:0px;white-space:pre-wrap;color:rgb(35, 38, 41);text-align:left">api.example.com</code><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important">, so I used the following configuration:</span><br></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important"><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important"><pre style="margin:0px 0px calc(1.5em);width:auto;max-height:600px;overflow:auto"><code style="margin:0px;border-radius:0px">address=/example.com/192.168.1.10</code></pre><span style="background-color:rgb(255, 255, 255);display:inline !important">However, dnsmasq also hijacks *.example.com to this IP address. Now how can I hijack only the specific address with dnsmasq?</span><br></span></div><div style="font-family: Arial, sans-serif; font-size: 14px;"><span style="color:rgb(35, 38, 41);font-family:-apple-system, "system-ui", "Segoe UI Adjusted", "Segoe UI", "Liberation Sans", sans-serif;font-size:15px;text-align:left;background-color:rgb(255, 255, 255);display:inline !important"><span style="background-color:rgb(255, 255, 255);display:inline !important"><br></span></span></div><div class="protonmail_signature_block" style="font-family: Arial, sans-serif; font-size: 14px;">
</div>
<span>_______________________________________________</span><br><span>Dnsmasq-discuss mailing list</span><br><span>Dnsmasq-discuss@lists.thekelleys.org.uk</span><br><span>https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss</span><br></div></blockquote></div></body></html>