<div dir="ltr"><div><br></div><p class="">First off I can see the “potential for abuse” in my
question. Its actually not the desire to do abuse which is causing the question
– quite the reverse – it’s the ability to rewrite domain requests so I can hit
a white list and hence filter traffic going through my access point. </p>

<p class="">Personally I come from a .NET background and I have a client
and server solution already working in .NET; But I want one working on an
Access point. Hence getting an old TP-Link Access point, flashing with Openwrt
(which nicely comes with DNSMASQ) and almost everything is ready to rock bar
one thing. </p>

<p class="">I want when a DNS request hits DNSMASQ (which will forward
all requests to my own DNS Servers) for it to be able to alter the request.
Specifically if the request was for <a href="http://www.domain.com/">www.domain.com</a>
I want it to become <a href="http://www.domain.com.accesspointid.filterdomain.com/">www.domain.com.AccessPointID.FilterDomain.com</a>
(ideally <a href="http://AccessPointID.FilterDomain.com">AccessPointID.FilterDomain.com</a> being specified in the config for
dnsmasq as an “always append”)</p>

<p class="">Where FilterDomain.com I control the Nameserver for – hence I
get all the requests. </p>

<p class="">The AccessPoint ID part of the request tells me which
accesspoint it is and hence I know whether to filter <a href="http://www.domain.com">www.domain.com</a> or not for that access point.</p>

<p class=""> Having looked through the man page, and all the options,
even to the point of downloading the source of dnsmasq and looking at
forward.c; I don’t believe out of the box I can do what I want with dnsmasq;
and the C…. hmmm its not my strong suit.</p><p class=""></p>

<p class="">So finally the questions:</p>

<p class="" style="margin-left:144pt">1.<span style="font-size:7pt;font-family:'Times New Roman'">      
</span>Am I right? Dnsmasq cannot do what I desire out
of the box as it doesn’t have the desired feature (probably by design)</p>

<p class="" style="margin-left:144pt">2.<span style="font-size:7pt;font-family:'Times New Roman'">      
</span>Am I right in that it “could” be programmed into
forward.c</p>

<p class="" style="margin-left:144pt">3.<span style="font-size:7pt;font-family:'Times New Roman'">      
</span>And if so any hints where to look in forward.c
as I …. Well I struggled. </p>

<p class="">Thanks in advance</p><p class=""><br></p><div>Stu</div>
</div>