[Dnsmasq-discuss] default "intranet-site" if dnsmasq can't resolve
Jima
jima at beer.tclug.org
Sun Feb 13 19:07:11 GMT 2011
On 2/13/2011 9:19 AM, Markus Ferlitsch wrote:
> is it with dnsmasq possible to forward the client to any small website
> (httpd) if dnsmasq can't resolve any domain-request?
>
> On some routers I use opendns - if a client lookup for any forbidden
> domain or tries to resolve any invalid domain the opendns server
> always return the same IP (IP from OpenDNS webserver which shows that
> the domain is blocked).
> So dnsmasq must forward to the intranet-site if opendns return this IP.
As long as you know the IP OpenDNS will return, it goes about like this:
alias=ip-from-opendns,ip-for-intranet-site
(e.g. alias=123.45.67.8,192.168.1.2)
As for "forward the client," that's a matter of the client software,
so it only does something useful if the DNS request was via a web
browser (returning your intranet site's IP for a request made from a
mail/FTP client won't help anything). I imagine you probably know that,
but your wording was curious.
Jima
(edit: re-sent from subscribed address)
More information about the Dnsmasq-discuss
mailing list