[Dnsmasq-discuss] Need help on configuring dnsmasq

Monthly Posting dnsmasq-discuss at lists.thekelleys.org.uk
Mon May 8 05:49:37 UTC 2023


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



More information about the Dnsmasq-discuss mailing list