Hi All,<br><br>First of all thanks for the help provided. As Peter in one of my earlier queries gave me a pointer and following that it is quite trivial to create our own Backend in PowerDNS and using getRemote(), I was able to retrieve the Client's resolver IP.<br>
<br>PowerDNS is indeed quite simple to extend. Thanks for this architecture.<br><br>I have one problem though. My backend is getting called multiple times. Even though I just send a single query using the host command.<br>
Just to show I put some output statements and these are printed after I sent the client query<br><br>Here's the console output:<br><br>***************************************************************************************<br>
Nov 16 11:20:26 Creating backend connection for TCP<br>Constructor called<br>% Nov 16 11:20:26 [bindbackend] Parsing 1 domain(s), will report when done<br>Nov 16 11:20:26 [bindbackend] parsing '<a href="http://example.com">example.com</a>' from file '/etc/bind/example.com.zone'<br>
Nov 16 11:20:26 [bindbackend] Done parsing domains, 0 rejected, 1 new, 0 removed<br>Constructor called<br>Nov 16 11:20:26 About to create 3 backend threads for UDP<br>Constructor called<br>Constructor called<br>Constructor called<br>
Constructor called<br>Constructor called<br>Constructor called<br>Nov 16 11:20:26 Done launching threads, ready to distribute questions<br>Nov 16 11:20:35 Distributor misses a thread (4<5), spawning new one<br>looked up<br>
looked up<br>looked up<br>looked up<br>Constructor called<br>Constructor called<br>***************************************************************************************<br><br>How I can reduce this to a single lookup() call from the PowerDNS to my Backend?. Even constructor is called many times. Can this be configured anywhere?<br>
<br>Thanks,<br>Nikhil.<br>