<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
  <title></title>
</head>
<body bgcolor="#ffffff" text="#000000">
I'd like to do something vaguely similar, though in my case it's
sending requests in a particular domain to a given pair of servers,
only when a vpn is up (e.g. tun0). If the VPN isn't up, those servers
are not reachable anyhow.<br>
<br>
I noticed the 'server=/&lt;domain&gt;/&lt;ipaddr&gt;@&lt;interface&gt;'
variant in the docs, but haven't had the time to investigate how it
behaves if the interface in question is down.<br>
<br>
This is also something pdnsd can do, but dnsmasq is a much better tool
for my needs in just about every respect, and I'd really prefer not to
have to run both.<br>
<br>
Paul<br>
<br>
Jorge Bastos wrote:
<blockquote cite="mid:000901c91730$9d3c65e0$d7b531a0$@jorge@decimal.pt"
 type="cite">
  <meta http-equiv="Content-Type" content="text/html; ">
  <meta name="Generator" content="Microsoft Word 12 (filtered medium)">
  <style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.Section1
        {page:Section1;}
-->
  </style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
  <div class="Section1">
  <p class="MsoNormal"><span lang="EN-US">Hi,<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">Simon, i&#8217;d like to ask for a
feature
if not implemented yet.<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">I&#8217;ve saw in other dns/dns
proxy
servers, the ability to serve an IP when certain DNS host is
down/doesn&#8217;t
respond.<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">Is it possible for dnsmasq,
to do this,
with two parameters, one for on/off the feature, and the 2<sup>nd</sup>
to
specify the host/IP for the response.<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">With this I could for
example, inside my
network, redirect all broken DNS&#8217;s to my webserver specifying a host
and
do a webpage explaining what happened.<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">Is this possible?<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">Thanks in advanced,<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">Jorge<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US"><o:p>&nbsp;</o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">PS: I saw it here, and it&#8217;s
something
that will be very handy for me, and I&#8217;m sure for other because of dns
problems.<o:p></o:p></span></p>
  <p class="MsoNormal"><span lang="EN-US">---<o:p></o:p></span></p>
  <p class="MsoNormal"><b><span lang="EN-US">About:</span></b><span
 lang="EN-US"> pdnsd
is a Proxy DNS server for Linux and FreeBSD that is designed to cope
with
unreacheable nameservers (e.g. because the dial-in link is not up) in a
graceful manner to prevent DNS-dependent applications like Netscape
from
hanging. It has a permanent disk cache and supports parallel query and
a wide
variety of link uptests. It also has the ability to serve some local
records.<o:p></o:p></span></p>
  </div>
</blockquote>
<br>
</body>
</html>