[Dnsmasq-discuss] Fwd: How to return NXDomain?
Simon Kelley
simon at thekelleys.org.uk
Wed Sep 11 10:40:45 BST 2013
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
>
> Is it currently possible to return NXDOMAIN with similar syntax, e.g.:
> address=/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.
Cheers,
Simon.
>
> If it is not possible, would there be any objections to adding such
> functionality?
>
> Best regards,
> Maciej Soltysiak
>
>
>
>
> _______________________________________________
> Dnsmasq-discuss mailing list
> Dnsmasq-discuss at lists.thekelleys.org.uk
> http://lists.thekelleys.org.uk/mailman/listinfo/dnsmasq-discuss
More information about the Dnsmasq-discuss
mailing list