<div dir="ltr"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif;color:#444444"><span style="font-family:Arial,Helvetica,sans-serif;color:rgb(34,34,34)">On Mon, 29 Mar 2021 at 08:52, Geert Stappers via Dnsmasq-discuss <<a href="mailto:dnsmasq-discuss@lists.thekelleys.org.uk">dnsmasq-discuss@lists.thekelleys.org.uk</a>> wrote:</span><br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Sun, Mar 28, 2021 at 10:11:01PM +0200, Roland Giesler wrote:<br>
> Is it possible to set up a split zone in dnsmasq?<br>
> <br>
> I mean a want more than just a host override, effectively only an A record<br>
> to be overridden and the other records blocked.<br>
> <br>
> So if I query <a href="http://abc.xyz" rel="noreferrer" target="_blank">abc.xyz</a> from the internet I would get a public ip address and<br>
> the same for the mx record.  If I however query "dig <a href="http://abc.xyz" rel="noreferrer" target="_blank">abc.xyz</a>" from the LAN<br>
> i would get my override record, 192.168.1.2.<br>
> <br>
> If I were to query "dig <a href="http://abc.xyz" rel="noreferrer" target="_blank">abc.xyz</a> mx", I would get no response.  Is there a<br>
> way in which I can tell dnsmasq to give me the mx record<br>
<br>
Snippet from the dnsmasq manual page:<br>
<br>
   -m, --mx-host=<mx name>[[,<hostname>],<preference>]<br>
          Return  an MX record named <mx name> pointing to the given<br>
          hostname (if given),<br>
<br>
> from the authoritative dns server?<br>
<br>
Query that authoritative DNS and enter the returned value<br>
in the dnsmasq configuration.<br><br></blockquote><div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)">I have seen that, but it does the exact opposite of what I'm looking for.  If I add a manual record in there, then it has to be manually updated when the public mx record changes.  </div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)"><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif;color:rgb(68,68,68)">I only want to overwrite the A record and want the other records to be resolved from the public DNS.<br><br>I'm quite surprised that there haven't been many requests for this before, since it's such a logical function imho.</div></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
> thanks<br>
<br>
I'm looking forward to the feedback.<br>
<br>
<br>
> *Roland *<br>
<br>
<br>
Groeten<br>
Geert Stappers<br>
-- <br>
Silence is hard to parse<br>
<br>
_______________________________________________<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></div>