[Dnsmasq-discuss] Fwd: How to return NXDomain?

Maciej Soltysiak maciej at soltysiak.com
Wed Sep 11 10:50:22 BST 2013


 On Wed, Sep 11, 2013 at 11:40 AM, Simon Kelley <simon at thekelleys.org.uk>wrote:

> On 11/09/13 10:33, Maciej Soltysiak wrote:
>
>> Hi everyone,
>>
>> To return a specific address for an IN A query we can do this:
>> address=/double-click.net/127.**0.0.1 <http://double-click.net/127.0.0.1>
>>
>> Is it currently possible to return NXDOMAIN with similar syntax, e.g.:
>> address=/double-click.net/**nxdomain <http://double-click.net/nxdomain>
>>
>
> Yes, you can tell dnsmasq that there's no upstream server for that domain:
> eg.
>
> server=/double-click.net/
>
> that way, if the query can't be answered from /etc/hosts or DHCP leases
> etc, it will get an NXDOMAIN reply.

Great! That's better in some cases than returning 127.0.0.1 or other rabbit
hole.

I'm away from my router at the moment. I'm just wondering if I should
expect the openwrt luci compatible config for this to be:

config 'domain'
     option 'name' 'doubleclick'
     option 'ip'   ''

and work :)


> Cheers,
>
> Simon.

Best regards,
Maciej
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.thekelleys.org.uk/pipermail/dnsmasq-discuss/attachments/20130911/a7309f6c/attachment.html>


More information about the Dnsmasq-discuss mailing list