<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
I hope this helps to clarify:<br>
<br>
I use the DNSMASQ, DNS and DHCP, in DD-WRT on a Router.  We use the
local DNS features of DNSMASQ to resolve local computers.  By default
we configured the DNSMASQ to resolve to OPENDNS for adult/torrent
filtration.  There are a select few who need to bypass the Opendns and
resolve to a 3rd party dns server.  These select few people use
reserved/static IPs.  So, a possibility might be for IPs .5 - .99 use
DNS B and for ips 100-200 use DNS A.  <br>
<br>
I tried to customize the DNS via the local machine, but it doesn't seem
to work properly<br>
<br>
PC 1: (static)<br>
DNS1: x.x.x.1 (router)<br>
DNS2: x.x.x.x (ISP)<br>
Issue: Always resolves via the router, never fails to DNS2<br>
<br>
PC 1: (static)<br>
DNS1: :x.x.x.x (ISP)<br>
DNS2: x.x.x.1 (router)<br>
Issue: Always resolves to ISP and never performs a local lookup<br>
<br>
PC 1 (static/reserved - Range 5-99)<br>
Resolve to Router/local then resolve to ISP<br>
<br>
PC 2 (DHCP - Range 100 - 199)<br>
Resolve to Router/local then resolve to OpenDNS<br>
<br>
It would be nice if I can use the local DNSMASQ dns features and if it
doesn't exist locally, fail so the PC can use DNS2 or something like
that.  I guess it would be simpler to setup an independent DHCP server
and
configure it there.  I was just hoping the keep it all on the router.<br>
<br>
I hope this is a little more understandable.  I hope someone out there
has a simple solution that would be more helpful.<br>
<br>
<br>
Thank you,<br>
<br>
<br>
xavier<br>
<br>
Jan 'RedBully' Seiffert wrote:
<blockquote cite="mid:49627E0A.5070302@cc.hs-owl.de" type="cite">
  <pre wrap="">Xavier Kerestesy wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Does anyone have an idea on how I can accomplish this?


    </pre>
  </blockquote>
  <pre wrap=""><!---->
Hmmm, it is still a little confusing what you are trying to achive, but i guess
you want dnsmasq to query different DNS-Server based on the client MAC-Address.
This is AFAIK not possible.

But there are "workarounds"
1) client side lookup
If you categorize your clients into net-tags ("Guest", "known", etc.) you can
send every tag a different set of DNS-Servers by DHCP. This way you loose the
cacheing ability of dnsmasq, but basically get what you want.
2) multi-dnsmasq
You set up several dnsmasq. You can do this on one mashine by giving one
interface several IPs and bind every dnsmasq instance to one IP. Only one dnmasq
instance does dhcp, it points your clients again by net-tag to the other
dnsmasq-IPs with DHCP, the other dnsmasq instances only do DNS-caching.

  </pre>
  <blockquote type="cite">
    <pre wrap="">Thank you,

    </pre>
  </blockquote>
  <pre wrap=""><!---->
HTH
greetings
        Jan

  </pre>
  <blockquote type="cite">
    <pre wrap="">Xavier



Xavier Kerestesy wrote:
    </pre>
    <blockquote type="cite">
      <pre wrap="">So by default everyone points to the dnsmasq for all dns queries.  
Then by default, dnsmasq points to opendns1, opendns2, ISPDNS1.  We
would like to add an option to use ISPDNS1, opendns2, opendns1 based
on an IP or via MAC address for authorized users.  Another option
might be, to check the local records, then fail and not use the other
DNS servers.  This would force the PC to use the next one which could
be configured to ISPDNS1.

Hopefully, this isn't too confusing.

Thank you!


Xavier

      </pre>
    </blockquote>
  </blockquote>
  <pre wrap=""><!---->[snip]

  </pre>
</blockquote>
</body>
</html>