[Dnsmasq-discuss] Return an address if unable to resolve?

Gilles Espinasse g.esp at free.fr
Thu Oct 18 08:24:11 BST 2007


----- Original Message ----- 
From: "Doug Moeller" <dmoeller at pobox.com>
To: <dnsmasq-discuss at lists.thekelleys.org.uk>
Sent: Thursday, October 18, 2007 6:26 AM
Subject: [Dnsmasq-discuss] Return an address if unable to resolve?


> Does anyone know if there is a way to have dnsmasq return a predefined
> address if it was unable to resolve the name via the DNS servers defined
> in /etc/hosts and /etc/resolv.conf ?
>
> Basically I want it to return the address of the localhost if it's
> unable to resolve the name.   For my application this would be the case
> when the box running dnsmasq is unable to get to the internet,   but I'd
> like to redirect them to a local web page where I can explain why the
> Internet link might be down and offer some troubleshooting tips.
>
> Any hints or alternative suggestions would be greatly appreciated.
>
Why did not you do that at the proxy level?
The drawback with proxy is that you can't have the proxy transparent or you
are not able to control if it is the proxy or the browser that will display
an error message.

Gilles




More information about the Dnsmasq-discuss mailing list