[Dnsmasq-discuss] Need help on configuring dnsmasq
Petr Menšík
pemensik at redhat.com
Thu May 11 16:00:48 UTC 2023
Use host-record=example.com,IP instead. Use host-record=example.com,::
if that name does not have IPv6 address. Do you need to override any
records queries for that name, not just addresses?
On 5/8/23 08:23, public1020 via Dnsmasq-discuss wrote:
> 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 at 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
>>
--
Petr Menšík
Software Engineer, RHEL
Red Hat, https://www.redhat.com/
PGP: DFCF908DB7C87E8E529925BC4931CA5B6C9FC5CB
More information about the Dnsmasq-discuss
mailing list