[kwlug-disc] Getting external IP

John Sellens jsellens at syonex.com
Mon Jan 29 12:09:29 EST 2018


Some may find “lbnamed” interesting, a dns server in Perl. 

https://web.stanford.edu/~riepel/lbnamed/bof.talk/

We used it at UUNET Canada many years ago as a distributed database for “POP before SMTP”.

Cheers

John 

On Jan 29, 2018, at 11:12 AM, "bob+kwlug at softscape.ca" <bob+kwlug at softscape.ca> wrote:

>> I had to write my own.
>> 
>> As far as I know, there's no way to get bind9 / named to respond to such
>> a query in the desired manner.
>> 
>> If anyone knows a way, let me know!
> 
> Not in bind9, but there seems to be a way to script a back-end in PowerDNS using the pipe backend feature.
> 
> 
>> And it was a rather surprisingly difficult task. I expected to watch
>> incoming queries for some text like, "my.ip" and simply spit out the
>> query source's IP address.
>> 
>> I was so young, dumb, and naïve way back then, in 2017...
>> 
>> It's all binary packed bytes, so '\x02my\x02ip\x00' to find "my.ip",
>> plus headers of course.
> 
> Did you modify named itself with your custom code? What's actually listening on port 53 on your server here?!?
> 
> BB
> 
> 
> 
> _______________________________________________
> kwlug-disc mailing list
> kwlug-disc at kwlug.org
> http://kwlug.org/mailman/listinfo/kwlug-disc_kwlug.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://kwlug.org/pipermail/kwlug-disc_kwlug.org/attachments/20180129/10e1c6c0/attachment.htm>


More information about the kwlug-disc mailing list