<div dir="ltr"><div>There is no way to know if this is the "right" or "wrong" approach without actually trying it and see what happens. </div><div><br></div><div>Guessing the potential background domains used by Microsoft / Steam, etc and monitoring bandwidth used by those domains is unfortunately the only option available. It's not like any of these companies are willing to outright divulge anything about these background details to anyone outside their business.</div><div><br></div>As far as load on the router goes for keeping track of possibly tens of thousands of custom routes, I am fine with dedicating a fast Intel i5 or i7 and a couple gigabytes of memory to the job. Most routers are tiny little things with very little CPU needed for normal routing, with the heavy lifting only happening if encryption is needed for a bunch of VPN connections.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 27, 2018 at 9:16 AM, Matus UHLAR - fantomas <span dir="ltr"><<a href="mailto:uhlar@fantomas.sk" target="_blank">uhlar@fantomas.sk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Tue, Jun 26, 2018 at 12:45 PM, Grant Taylor via bind-users <<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a>> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Are you saying that you want to dynamically update routes to IPs resolved<br>
in real time to specific host / domain names?  Such that traffic to<br>
specific hosts / domain names is routed over DSL?  With things that don't<br>
match conditions routed over cell?<br>
</blockquote></blockquote>
<br>
</span><span class=""><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I think I understand what you want to do and why you want to do it.<br>
</blockquote>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
It seems like you're using named as the source of information to feed into<br>
the process that dynamically updates routing.<br>
<br>
I find the pausing of named to be questionable.  But I understand that you<br>
want to make sure that no connections are started until after the<br>
(re)routing has been done.<br>
</blockquote></blockquote>
<br></span><span class="">
On 26.06.18 14:07, Dale Mahalko wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
(I am no programming expert as mentioned, but I do IT stuff for a living,<br>
so..)<br>
<br>
The pause would only be long enough to look for a regex domain pattern to<br>
be routed to the DSL, and then creating the route. This pause can likely be<br>
measured in nanoseconds.<br>
</blockquote>
<br></span>
I don't think this could be done in nanoseconds. Maybe microseconds, but<br>
more probably miliseconds.<br>
<br>
Another question would be, how fast your router can be with potentially<br>
thousands of routes (I know, many OSes have routing optimised very hardly).<span class=""><br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This would likely be a multithreaded asynchronous mechanism so that BIND<br>
does each of its lookups as usual, and then forks a followup thread after<br>
it completes its normal lookup process, to do the pattern match and route<br>
creation, followed by the delayed response released when the<br>
pattern-match/route-creation thread terminates.<br>
<br>
So in general using multithreading, there would be no real impact to<br>
programs requesting the lookups, other than a delay per lookup that is so<br>
small it would not be noticeable to an end-user human.<br>
</blockquote>
<br></span>
I think that you are trying wrong approach, using wrong tools.<br>
Guessing the potential usage from DNS is not a goog idea.<br>
<br>
On your router, configure firewall to route selected protocols (gaming, ssh,<br>
RDP, dns) and maybe later some sites to paid cellular and router everything<br>
other to DSL.<br>
<br>
Note that at my home, most of data is spend by my children watching youtube<br>
videos - I don't think that routing general web and streaming services to<br>
cell connection would help you with anything.<span class="HOEnZb"><font color="#888888"><br>
<br>
-- <br>
Matus UHLAR - fantomas, <a href="mailto:uhlar@fantomas.sk" target="_blank">uhlar@fantomas.sk</a> ; <a href="http://www.fantomas.sk/" rel="noreferrer" target="_blank">http://www.fantomas.sk/</a><br>
Warning: I wish NOT to receive e-mail advertising to this address.<br>
Varovanie: na tuto adresu chcem NEDOSTAVAT akukolvek reklamnu postu.<br>
M$ Win's are shit, do not use it !</font></span><div class="HOEnZb"><div class="h5"><br>
______________________________<wbr>_________________<br>
Please visit <a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a> to unsubscribe from this list<br>
<br>
bind-users mailing list<br>
<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a><br>
<a href="https://lists.isc.org/mailman/listinfo/bind-users" rel="noreferrer" target="_blank">https://lists.isc.org/mailman/<wbr>listinfo/bind-users</a><br>
</div></div></blockquote></div><br></div>