I want dnsmasq to do exact match, e.g "address=/example.com/IP" should only 
match example.com, not *.example.com.

Does dnsmasq support that?

------- Original Message -------
On Monday, May 8th, 2023 at 1:49 PM, Monthly Posting 
<dnsmasq-discuss@lists.thekelleys.org.uk> wrote:


> On Mon, May 08, 2023 at 03:45:29AM +0000, public1020 wrote:
> 
> > I'm trying to use dnsmasq to hijack example.com, but not
> > api.example.com, so I used the following configuration:
> > address=/example.com/192.168.1.10
> > 
> > However, dnsmasq also hijacks *.example.com to this IP address.
> > Now how can I hijack only the specific address with dnsmasq?
> 
> 
> Play with two changes in the configuration:
> 
> api.example.com=valid_address
> example.com=hijack_address
> 
> 
> See manual page for actual syntax.
> Karma bonus points for sharing what works.
> 
> 
> Regards
> Monthly Posting
> --
> https://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/2023q2/017067.html
> 
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss@lists.thekelleys.org.uk
> https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

_______________________________________________
Dnsmasq-discuss mailing list
Dnsmasq-discuss@lists.thekelleys.org.uk
https://lists.thekelleys.org.uk/cgi-bin/mailman/listinfo/dnsmasq-discuss

Reply via email to