<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jun 26, 2018 at 12:45 PM, Grant Taylor via bind-users <span dir="ltr"><<a href="mailto:bind-users@lists.isc.org" target="_blank">bind-users@lists.isc.org</a>></span> wrote:<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 in real time to specific host / domain names? Such that traffic to specific hosts / domain names is routed over DSL? With things that don't match conditions routed over cell?<span class=""><br></span></blockquote><div><br></div><div>Yes.</div><div> </div><div><br></div><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>
<br>
It seems like you're using named as the source of information to feed into the process that dynamically updates routing.<br>
<br>
I find the pausing of named to be questionable. But I understand that you want to make sure that no connections are started until after the (re)routing has been done.<br></blockquote><div><br></div><div>(I am no programming expert as mentioned, but I do IT stuff for a living, so..)<br></div><div><br class="gmail-Apple-interchange-newline"></div><div>The pause would only be long enough to look for a regex domain pattern to be routed to the DSL, and then creating the route. This pause can likely be measured in nanoseconds.</div><div><br></div><div>This would likely be a multithreaded asynchronous mechanism so that BIND does each of its lookups as usual, and then forks a followup thread after it completes its normal lookup process, to do the pattern match and route creation, followed by the delayed response released when the pattern-match/route-creation thread terminates.</div><div><br></div><div>So in general using multithreading, there would be no real impact to programs requesting the lookups, other than a delay per lookup that is so small it would not be noticeable to an end-user human.</div><div><br></div></div></div></div>