I came back. These two solutions worked for me:

- addn-hosts=/etc/dnsmasq-hosts

- host-record=example.com,1.2.3.4

Hopefully it would help someone.
------- Original Message -------
On Tuesday, May 9th, 2023 at 3:14 AM, Elisamuel Resto <s...@samresto.dev> wrote:

> What I do, which seems to work (for me):
>
> host-record=example.com/1.2.3.4
>
> Regards,
> -Sam
>
>> On May 7, 2023, at 23:01, public1020 via Dnsmasq-discuss 
>> <dnsmasq-discuss@lists.thekelleys.org.uk> wrote:
>
>> 
>> I'm trying to use dnsmasq to hijackexample.com, but notapi.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?
>>
>> _______________________________________________
>> 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